WarTornLands.PlayerClasses.Player.Player C# (CSharp) Метод

Player() публичный Метод

public Player ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Результат System
        public Player(Game game)
            : base(game, Vector2.Zero, null)
        {
            _weaponRange = Constants.Player_WeaponRange;
            _cm = new CounterManager();
            _cm.Bang += new EventHandler<BangEventArgs>(OnBang);

            (Game as Game1)._input.Potion.Pressed += new EventHandler(UsePotion);

            _cm.AddCounter(_hitCounter, Constants.Player_HitDuration);
            _radius = Constants.Player_Radius;

            //FrameCounter
            _cm.AddCounter(_animCounter, 250);
            _cm.StartCounter(_animCounter,false);

            _health = 500;
            _canBeAttacked = true;
        }

Same methods

Player::Player ( ) : System