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); }
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 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); }
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); }
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); }
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 Transport(GameObjectCollection collection) : base(collection) { vicToResupply = new GameObjectReferenceField<CombatVehicle>(this); }