public Worker(WorkersUnion union) { this.state = State.Working; this.union = union; this.inventory = new Inventory(5); // TODO: Make inventory size configurable. this.targetContainer = null; }
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); }