public MemberPhysicalObject(Game1 game)
     : base(game)
 {
     positionRelativeToParent = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     directionRelativeToParent = new InterpolatedAngleGameObjectMember(this, 0);
     parent = new GameObjectReferenceField<PhysicalObject>(this);
 }
 public MemberPhysicalObject(Game1 game)
     : base(game)
 {
     positionRelativeToParent  = new InterpolatedVector2GameObjectMember(this, new Vector2(0));
     directionRelativeToParent = new InterpolatedAngleGameObjectMember(this, 0);
     parent = new GameObjectReferenceField <PhysicalObject>(this);
 }
Exemplo 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);
 }
Exemplo n.º 4
0
 public Vehicle(GameObjectCollection collection)
     : base(collection)
 {
     controllingPlayer = new GameObjectReferenceField<PlayerGameObject>(this);
     company = new GameObjectReferenceField<Company>(this);
     materiel = new FloatGameObjectMember(this, 10);
     maxMateriel = new FloatGameObjectMember(this, 10);            
 }
Exemplo n.º 5
0
 public Base(GameObjectCollection collection)
     : base(collection)
 {
     materiel = new FloatGameObjectMember(this, 0);
     controllingPlayer = new GameObjectReferenceField<PlayerGameObject>(this);
     buildQueue = new IntegerQueueGameObjectField(this);
     resupplyQueue = new GameObjectReferenceQueueField<Vehicle>(this);
 }
Exemplo n.º 6
0
 public Company(GameObjectCollection collection)
     : base(collection)
 {          
     controllingPlayer = new GameObjectReferenceField<PlayerGameObject>(this);
     combatVehicles = new GameObjectReferenceListField<CombatVehicle>(this);
     transportVehicles = new GameObjectReferenceListField<Transport>(this);
     supplyPoint = new GameObjectReferenceField<Base>(this);
 }
Exemplo n.º 7
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);
 }
Exemplo n.º 8
0
 public Transport(GameObjectCollection collection)
     : base(collection)
 {
     vicToResupply = new GameObjectReferenceField<CombatVehicle>(this);
 }