示例#1
0
 public Worker(WorkersUnion union)
 {
     this.state           = State.Working;
     this.union           = union;
     this.inventory       = new Inventory(5); // TODO: Make inventory size configurable.
     this.targetContainer = null;
 }
示例#2
0
 public Game(int width, int height)
 {
     this.board  = new Board(this, width, height);
     this.itemDB = new ItemDatabase(this);
     this.jobs   = new JobQueue(this);
     this.union  = new WorkersUnion(this);
 }