Beispiel #1
0
        private void init()
        {
            velocity = new Vector2();
            target = null;
            activeCommand = null;
            aggressive = false;
            pursue = false;

            engine = (Engine)((UnitType)Type).Engine.create();
        }
Beispiel #2
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="e">
 /// A <see cref="Engine"/>
 /// </param>
 public Engine(Engine e)
 {
     this.Type = e.Type;
     init();
 }