B.A.R.G.A.M.E. v2.0 El Farol Bar Problem Implementation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Defines
Doxygen Specific Source Code/Agent.h
Go to the documentation of this file.

    00001 #ifndef AGENT_H
    00002 #define AGENT_H
    00003
    00004 #include <iostream>
    00005 #include <cstdlib>
    00006 #include "Strategy.h"
    00007 using namespace std;
    00008
    00010
    00016 class Agent {
    00017
    00018 public:
    00019
    00021
    00024         Agent();
    00025
    00030         ~Agent();
    00031
    00033
    00044         Agent(int numberOfBars, int avgAge, int dropS, Strategy* s1, Strategy* s2, Strategy *s3);
    00045
    00047
    00055         Agent(int numberOfBars, int avgAge, int dropS);
    00056
    00058
    00068         int isGoingToBar(int STM);
    00069
    00071
    00082         Strategy** tellWins(int winners[],int STM);
    00083
    00085
    00093         bool isDead(pass_graph* stuff);
    00094
    00095 protected:
    00096
    00101         Strategy** strats;
    00102
    00107         int numberOfBars;
    00108
    00113         int age;
    00114
    00121         int death;
    00122
    00128         int bar;
    00129
    00135         int drop;
    00136 };
    00137
    00138 #endif
    00139
    00140