protected override void BeginRun() { field = new Field(480, 800); field.Spawn(typeof(Player), new Vector2(40, 40), Polarity.Red); field.Spawn(typeof(Chaser), new Vector2(80, 40), Polarity.Red); field.Spawn(typeof(Smarty), new Vector2(80, 80), Polarity.Blue); field.Spawn(typeof(Stander), new Vector2(40, 80), Polarity.Blue); field.Spawn(typeof(Rover), new Vector2(80, 80), Polarity.Red); field.Spawn(typeof(Dual), new Vector2(160, 160), Polarity.Blue); field.Spawn(typeof(Shooter), new Vector2(160, 200), Polarity.Red); field.Spawn(typeof(Layer), new Vector2(40, 200), Polarity.Blue); base.BeginRun(); }
public Stander(Field field, Vector2 position, Polarity polarity) : base(field, position, polarity) { direction = 0; }
public Layer(Field field, Vector2 position, Polarity polarity) : this(field, position, RandomAngle(), polarity) { }
public Layer(Field field, Vector2 position, float direction, Polarity polarity) : base(field, position, direction, polarity) { minePolarity = polarity; }
public Shape(Field field, Vector2 position, Polarity polarity) { this.field = field; this.position = position; this.polarity = polarity; }
public Shooter(Field field, Vector2 position, Polarity polarity) : base(field, position, polarity) { lastShot = null; }
public Smarty(Field field, Vector2 position, Polarity polarity) : base(field, position, polarity) { }
public Chaser(Field field, Vector2 position, Polarity polarity) : base(field, position, polarity) { }
public Rover(Field field, Vector2 position, float direction, Polarity polarity) : base(field, position, polarity) { velocity = VecOps.Polar(.5F, direction); }
public Dual(Field field, Vector2 position, Polarity polarity) : base(field, position, polarity) { direction = 0F; }