public CatBrain(CatAI cat) { this.cat = cat; this.currentActiveState = new RestingState(this.cat); this.physicalState = new CatPhysicalState(); this.mentalState = new MentalState(); this.eventQueue = new EventQueue(EVENT_UPDATE_INTERVAL); }
public CatBrain(CatAI cat, ActiveState initialActiveState) { this.cat = cat; this.currentActiveState = initialActiveState; this.physicalState = new CatPhysicalState(); this.mentalState = new MentalState(); this.eventQueue = new EventQueue(EVENT_UPDATE_INTERVAL); }