public SetBaseHealthEvent(GameSession.Alliance color, int eventId, int health, VTankBot _game) : base(_game) { this.baseColor = color; this.baseEventId = eventId; this.newBaseHealth = health; }
public FlagDroppedEvent(GamePlayState _game, int droppedId, VTankObject.Point where, GameSession.Alliance flagColor) : base(_game) { this.droppedId = droppedId; this.where = where; this.flagColor = flagColor; }
public BaseCapturedEvent(int eventId, GameSession.Alliance newBaseColor, int capturerId, GameSession.Alliance oldBaseColor, GamePlayState _game) : base(_game) { this.baseEventId = eventId; this.newBaseColor = newBaseColor; this.capturerId = capturerId; this.oldBaseColor = oldBaseColor; }
public DamageBaseByEnvironmentEvent(VTankBot _game, GameSession.Alliance baseColor, int baseId, int envId, int damage, bool isDestroyed) : base(_game) { this.baseColor = baseColor; this.baseId = baseId; this.environmentEffectId = envId; this.damage = damage; this.isDestroyed = isDestroyed; }
/// <summary> /// Constructor for a Base /// </summary> /// <param name="color">The team color of the base</param> /// <param name="position">The position to place the base at</param> /// <param name="eventId">The event ID of the base</param> /// <param name="_model">The model of the base.</param> public Base(GameSession.Alliance color, Vector3 position, int eventId, Model _model) : base(_model, position) { this.originalOwner = color; this.BaseColor = color; this.Position = position; this.eventId = eventId; this.health = Constants.MAX_BASE_HEALTH; this.destroyed = false; previousDamageState = DamageState.None; ParticleEmitter0 = new ParticleEmitter("DamagedBaseFire"); ParticleEmitter1 = new ParticleEmitter("DamagedBaseFire"); ParticleEmitter2 = new ParticleEmitter("DamagedBaseFire"); ParticleEmitter3 = new ParticleEmitter("DamagedBaseFire"); StopEmitters(); ServiceManager.Scene.Add(ParticleEmitter0, 3); ServiceManager.Scene.Add(ParticleEmitter1, 3); ServiceManager.Scene.Add(ParticleEmitter2, 3); ServiceManager.Scene.Add(ParticleEmitter3, 3); }
public ResetBasesEvent(VTankBot _game, GameSession.Alliance winner) : base(_game) { this.winner = winner; }
public ResetBasesEvent(GamePlayState _game, GameSession.Alliance winner) : base(_game) { this.winner = winner; }
public FlagPickedUpEvent(VTankBot _game, int pickedUpById, GameSession.Alliance flagColor) : base(_game) { this.pickedUpById = pickedUpById; this.flagColor = flagColor; }
public FlagReturnedEvent(GamePlayState _game, int returnedById, GameSession.Alliance flagColor) : base(_game) { this.returnedById = returnedById; this.flagColor = flagColor; }
public FlagDespawnedEvent(VTankBot _game, GameSession.Alliance flagColor) : base(_game) { this.flagColor = flagColor; }
/// <summary> /// Resets the base to it's original state. /// </summary> public void Reset() { Team = BaseID < 3 ? GameSession.Alliance.BLUE : GameSession.Alliance.RED; health = DEFAULT_BASE_HEALTH; }
public FlagSpawnedEvent(VTankBot _game, VTankObject.Point where, GameSession.Alliance flagColor) : base(_game) { this.where = where; this.flagColor = flagColor; }
public FlagDespawnedEvent(GamePlayState _game, GameSession.Alliance flagColor) : base(_game) { this.flagColor = flagColor; }
public FlagCapturedEvent(VTankBot _game, int capturedById, GameSession.Alliance flagColor) : base(_game) { this.capturedById = capturedById; this.flagColor = flagColor; }