Example #1
0
 public Trade(string c, float p, float q, EconAgent a)
 {
     commodity = c;
     price     = p;
     quantity  = q;
     agent     = a;
 }
Example #2
0
    void InitAgent(EconAgent agent, string type)
    {
        agent.debug++;
        List <string> buildables = new List <string>();

        buildables.Add(type);
        agent.Init(initCash, buildables, initStock, maxStock);
    }