Beispiel #1
0
        public void setState(InhibitorState state, GameObject killer = null)
        {
            if (RespawnTimer != null && state == InhibitorState.Alive)
            {
                RespawnTimer.Stop();
            }

            State = state;
            _game.PacketNotifier.NotifyInhibitorState(this, killer);
        }
Beispiel #2
0
        public void SetState(InhibitorState state, IGameObject killer = null)
        {
            if (_respawnTimer != null && state == InhibitorState.ALIVE)
            {
                _respawnTimer.Stop();
            }

            InhibitorState = state;
            _game.PacketNotifier.NotifyInhibitorState(this, killer);
        }
Beispiel #3
0
 // TODO assists
 public Inhibitor(
     string model,
     TeamId team,
     int collisionRadius = 40,
     float x             = 0,
     float y             = 0,
     int visionRadius    = 0,
     uint netId          = 0
     ) : base(model, new BuildingStats(), collisionRadius, x, y, visionRadius, netId)
 {
     stats.CurrentHealth          = 4000;
     stats.HealthPoints.BaseValue = 4000;
     State = InhibitorState.Alive;
     SetTeam(team);
 }