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); }
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); }