Esempio n. 1
0
 public OvenRunning(Oven oven)
 {
     this.oven          = oven;
     StateMsgForExamine = "running";
     oven.OnSyncScreenGlow(oven.screenGlowEnabled, true);
     oven.OnSyncOvenGlow(oven.ovenGlowEnabled, true);
     oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Running);
     oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Closed);
     oven.SetWattage(oven.circuitWattage + oven.ovenBulbWattage + oven.magnetronWattage);
 }
Esempio n. 2
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);
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
 private void Start()
 {
     oven = GetComponent <Oven>();
 }