Ejemplo n.º 1
0
 public OvenUnpoweredOpen(Oven oven)
 {
     this.oven          = oven;
     StateMsgForExamine = "unpowered and open";
     oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Idle);
     oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Open);
     oven.OnSyncScreenGlow(oven.screenGlowEnabled, false);
     oven.OnSyncOvenGlow(oven.ovenGlowEnabled, false);
     oven.HaltOven(true);
     oven.SetWattage(oven.circuitWattage + oven.ovenBulbWattage);
 }
Ejemplo n.º 2
0
 public OvenIdle(Oven oven)
 {
     this.oven          = oven;
     StateMsgForExamine = "idle";
     oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Idle);
     oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Closed);
     oven.OnSyncScreenGlow(oven.screenGlowEnabled, false);
     oven.OnSyncOvenGlow(oven.ovenGlowEnabled, false);
     oven.HaltOven(true);
     oven.SetWattage(oven.circuitWattage);
 }