public VoidCreature(AIType ai, FightMode mode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed) : base(ai, mode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed) { m_Evolutions = new List <EvolutionHandler>(); CreateEvolutionHandlers(); m_Timer = new EvolutionTimer(this); m_Timer.Start(); Team = 1; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); /*int version = */ reader.ReadInt(); m_Evolutions = new List <EvolutionHandler>(); CreateEvolutionHandlers(); m_Timer = new EvolutionTimer(this); m_Timer.Start(); }
private void btn_startStop_Click(object sender, EventArgs e) { if (EvolutionTimer.Enabled) { EvolutionTimer.Enabled = false; EvolutionTimer.Stop(); btn_startStop.Text = "Start"; btn_reset.Enabled = true; } else { EvolutionTimer.Enabled = true; EvolutionTimer.Start(); btn_reset.Enabled = false; btn_startStop.Text = "Stop"; } /* * Thread t = new Thread(() => { * picture_target.Image = GlobalImageData.GetMozaic(); * }); * t.Start(); */ }