private void UpdateSpawningInState(GameTime time, HackGameBoard board, HackNodeGameBoardMedia drawing) { spawnInData.totalTimer -= (float)time.ElapsedGameTime.TotalSeconds; if (spawnInData.totalTimer <= 0) { this.SetCurrentState(HackGameAgent_State.HackGameAgent_State_Active); } else { if (spawnInData.flashing) { spawnInData.dropInFlash.Update(time); } else { spawnInData.dropInLerp.Update(time); if (!spawnInData.dropInLerp.IsAlive()) { spawnInData.DrawImpact = true; spawnInData.StartFlashing(); board.AddBackgroundTextEmergency(new StringBuilder("[WARNING] AI ACTIVATING"), 0); board.AddBackgroundTextEmergency(new StringBuilder("SENSORS PICKING UP ICE"), 0.5f); board.AddBackgroundTextEmergency(new StringBuilder("DANGER-DANGER-DANGER"), 0.25f); } } } }
private void Wander_Ping(HackGameBoard board) { board.AddBackgroundTextEmergency(new StringBuilder("AI #3180 PING..."), 0); board.AddBackgroundTextEmergency(new StringBuilder("AI RESOLVE OK"), 0.75f); StartPing_Update = true; //move right away to analyze. wanderSubState = HackGameAgent_AI_Wander_SubState.HackGameAgent_AI_State_Wander_Substate_AnalyzePing; }
private void UpdateSpawningInState(GameTime time, HackGameBoard board, HackNodeGameBoardMedia drawing) { spawnInData.totalTimer -= (float)time.ElapsedGameTime.TotalSeconds; if (spawnInData.totalTimer <= 0) { this.SetCurrentState(HackGameAgent_State.HackGameAgent_State_Active); } else { if (spawnInData.flashing) { spawnInData.dropInFlash.Update(time); } else { spawnInData.dropInLerp.Update(time); if (!spawnInData.dropInLerp.IsAlive()) { spawnInData.DrawImpact = true; spawnInData.StartFlashing(); board.AddBackgroundTextEmergency(new StringBuilder("[EMERGENCY] NODE COLLAPSING"), 0); board.AddBackgroundTextEmergency(new StringBuilder("[EMERGENCY] CLEAR NODE IMMEDIATELY"), 0.10f); } } } }