public PlayerGameObject(GameObjectCollection collection)
     : base(collection)
 {
     playerID = new IntegerGameObjectMember(this, 0);
     colorIndex = new IntegerGameObjectMember(this, 0);
     companies = new GameObjectReferenceListField<Company>(this);
 }
示例#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);
 }
 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);
 }
示例#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));
 }
 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));
 }