Пример #1
0
        ///////////////////////////////////////////////////
        // Member Functions
        ///////////////////////////////////////////////////

        /// <summary>
        /// Generic constructor
        /// Type = Vehicle bot uses
        /// State = direction and location of bot for spawn
        /// Arena = the arena the bot is in
        /// Team = the team the bot is on
        /// Lane = the lane the bot is assigned to [0=top,1=mid,2=bottom]
        /// Side = the side we are on, 0 = left -- 1 = right
        /// </summary>
        public RangeMinion(VehInfo.Car type, Helpers.ObjectState state, Arena arena, Script_MOBA moba, Team team, int lane, int side)
        //: base(
            : base(type, state, arena,
                   new SteeringController(type, state, arena))
        {
            Random rnd = new Random(Environment.TickCount);

            _lane      = lane;
            _team      = team;
            _moba      = moba;
            _attacking = false;
            _side      = side;

            if (_side == 0)
            {
                _atWaypoint = 0;
            }
            else
            {
                _atWaypoint = _maxWaypoints;
            }

            _seperation = (float)rnd.NextDouble();
            steering    = _movement as SteeringController;


            if (type.InventoryItems[0] != 0)
            {
                _weapon.equip(AssetManager.Manager.getItemByID(type.InventoryItems[0]));
            }
        }
Пример #2
0
        ///////////////////////////////////////////////////
        // Member Functions
        ///////////////////////////////////////////////////

        /// <summary>
        /// Generic constructor
        /// </summary>
        public JungleBot(VehInfo.Car type, Helpers.ObjectState state, Arena arena, Script_MOBA _ctfhq, Vehicle home)
            : base(type, state, arena,
                   new SteeringController(type, state, arena))
        {
            Random rnd = new Random();

            _home = home;

            _seperation = (float)rnd.NextDouble();
            steering    = _movement as SteeringController;

            if (type.InventoryItems[0] != 0)
            {
                _weapon.equip(AssetManager.Manager.getItemByID(type.InventoryItems[0]));
            }
        }
Пример #3
0
        ///////////////////////////////////////////////////
        // Member Functions
        ///////////////////////////////////////////////////

        /// <summary>
        /// Generic constructor
        /// Type = Vehicle bot uses
        /// State = direction and location of bot for spawn
        /// Arena = the arena the bot is in
        /// Team = the team the bot is on
        /// Lane = the lane the bot is assigned to [0=top,1=mid,2=bottom]
        /// </summary>
        public Projectile(VehInfo.Car type, Helpers.ObjectState state, Arena arena, Script_MOBA moba, Team team)
        //: base(
            : base(type, state, arena,
                   new SteeringController(type, state, arena))
        {
            Random rnd = new Random(Environment.TickCount);

            _team = team;
            _moba = moba;

            _seperation = (float)rnd.NextDouble();
            steering    = _movement as SteeringController;

            if (type.InventoryItems[0] != 0)
            {
                _weapon.equip(AssetManager.Manager.getItemByID(type.InventoryItems[0]));
            }

            _lifeTime = Environment.TickCount;
        }