Exemplo n.º 1
0
 public Tank(ContentManager cm, Vector2 start, AbstractUnitFactory factory)
     : base(cm, factory, cm.Load <Model>("models/hairship"), start)
 {
     this.scale    = 1.6f;
     this._life    = 500;
     this._lifeMax = 500;
 }
Exemplo n.º 2
0
 public Tank(ContentManager cm, Vector2 start, AbstractUnitFactory factory)
     : base(cm, factory, cm.Load<Model>("models/hairship"), start)
 {
     this.scale = 1.6f;
     this._life = 500;
     this._lifeMax = 500;
 }
Exemplo n.º 3
0
 public Pigeon(ContentManager cm, Vector2 start, AbstractUnitFactory factory)
     : base(cm, factory, cm.Load<Model>("models/pigeon"), start)
 {
     this.regen = 0.3f;
     this.mass = 1f;
     this._life = 50;
     this._lifeMax = 50;
 }
Exemplo n.º 4
0
 public Pigeon(ContentManager cm, Vector2 start, AbstractUnitFactory factory)
     : base(cm, factory, cm.Load <Model>("models/pigeon"), start)
 {
     this.regen    = 0.3f;
     this.mass     = 1f;
     this._life    = 50;
     this._lifeMax = 50;
 }
Exemplo n.º 5
0
        public UserUnit(ContentManager cm, AbstractUnitFactory f, Model def_body, Vector2 def_pos)
            : base(def_body, def_pos)
        {
            this.content = cm;
            this.factory = f;

            aimerModel = content.Load<Model>("models/box");
            bar = content.Load<Model>("models/box");
        }
Exemplo n.º 6
0
        public UserUnit(ContentManager cm, AbstractUnitFactory f, Model def_body, Vector2 def_pos)
            : base(def_body, def_pos)
        {
            this.content = cm;
            this.factory = f;

            aimerModel = content.Load <Model>("models/box");
            bar        = content.Load <Model>("models/box");
        }