예제 #1
0
        public TestMonster(Texture2D sprite, Vector2 position, Stats entStats)
            : base(sprite, position, entStats)
        {
            actionTimer = 0;

            passive = new PassiveAttack(new Rectangle(0, 0, sprite.Bounds.Width + 2, sprite.Bounds.Height + 2), this, .5f, 15);

            entRNG = new Random();
        }
예제 #2
0
        public Player(Texture2D sprite, Vector2 position, PlayerIndex playerNum, Stats entStats, GameUIElement playerUI)
            : base(sprite, position, entStats)
        {
            this.playerNum = playerNum;
            curState = PlayerState.PLAYER_OTHER;

            this.playerUI = playerUI;

            this.testAttack = new SimpleAttack(new Rectangle(0, 0, 32, 16), this, 1.5f, 50);

            this.playerCenter = new Vector2(sprite.Width / 2, sprite.Height / 2);

            this.logicManager = GamePlayLogicManager.GetInstance();
            this.drawManager = GamePlayDrawManager.GetInstance();
            this.playerManager = PlayerManager.GetInstance();
        }