Пример #1
0
 ///<summary>
 ///constructor for given team with given minimap component
 ///</summary>
 public BotPolygon(
     GameManager.GameManager.Teams team,
     MinimapComponent minimapComponent)
 {
     _team = team;
     _minimapComponent = minimapComponent;
 }
Пример #2
0
 ///<summary>
 ///constructor for given team with given minimap component
 ///</summary>
 public BotAnimatedSprite(
     GameManager.GameManager.Teams team,
     MinimapComponent minimapComponent)
 {
     _team = team;
     _minimapComponent = minimapComponent;
 }
Пример #3
0
        /// <summary>
        /// main construtor
        /// </summary>
        /// <param name="flagData">owner team</param>
        public TriggerFlag(FlagData flagData)
            : base(new Flag((GameManager.GameManager.Teams)flagData.Team))
        {
            Name = flagData.Name;
            Position = flagData.Position;
            BoundingRadius = flagData.Radius;
            NodeIndex = flagData.NodeIndex;
            _homePosition = flagData.Position;
            _team = (GameManager.GameManager.Teams)flagData.Team;

            //create this trigger's region of influence
            AddCircularTriggerRegion(
                Position,
                GameManager.GameManager.Instance.Parameters.DefaultGiverTriggerRange);

            EntityType = EntityTypes.Flag;
            IsActive = true;
        }
Пример #4
0
 ///<summary>
 ///constructor for given team
 ///</summary>
 ///<param name="team"></param>
 public Flag(GameManager.GameManager.Teams team)
 {
     _team = team;
 }
Пример #5
0
 /// <summary>
 /// main constructor
 /// </summary>
 public FoundTriggerList(GameManager.GameManager.Teams ownerTeam)
 {
     _ownerTeam = ownerTeam;
     Reset();
 }