Ejemplo n.º 1
0
 public PlayerGameObject(GameObjectCollection collection)
     : base(collection)
 {
     playerID = new IntegerGameObjectMember(this, 0);
     colorIndex = new IntegerGameObjectMember(this, 0);
     companies = new GameObjectReferenceListField<Company>(this);
 }
Ejemplo n.º 2
0
 public Bullet(Game1 game)
     : base(game)
 {
     damage = new IntegerGameObjectMember(this, 10);
     start  = new Vector2GameObjectMember(this, new Vector2(0));
     range  = new FloatGameObjectMember(this, 3000);
     owner  = new GameObjectReferenceField <Ship>(this);
 }
Ejemplo n.º 3
0
 public Bullet(Game1 game)
     : base(game)
 {
     damage = new IntegerGameObjectMember(this, 10);
     start = new Vector2GameObjectMember(this, new Vector2(0));
     range = new FloatGameObjectMember(this, 3000);
     owner = new GameObjectReferenceField<Ship>(this);
 }
Ejemplo n.º 4
0
 public Ship(Game1 game)
     : base(game)
 {
     health         = new IntegerGameObjectMember(this, 40);
     maxSpeed       = new FloatGameObjectMember(this, 300);
     acceleration   = new FloatGameObjectMember(this, 300);
     maxAgularSpeed = new FloatGameObjectMember(this, 0.5f);
     shipsKilled    = new IntegerGameObjectMember(this, 0);
     targetVelocity = new Vector2GameObjectMember(this, new Vector2(0));
 }
Ejemplo n.º 5
0
 public Ship(Game1 game)
     : base(game)
 {
     health = new IntegerGameObjectMember(this, 40);
     maxSpeed = new FloatGameObjectMember(this, 300);
     acceleration = new FloatGameObjectMember(this, 300);
     maxAgularSpeed = new FloatGameObjectMember(this, 0.5f);
     shipsKilled = new IntegerGameObjectMember(this, 0);
     targetVelocity = new Vector2GameObjectMember(this, new Vector2(0));
 }