Exemple #1
0
        /// <summary>
        /// Creates a new Player
        /// </summary>
        /// <param name="location">A rectangle representing the location of the player</param>
        /// <param name="fileName">The location of the sprite in the files</param>
        public Player(FloatRectangle location, Sprite sprite) : base(location, sprite, 10, null, 40)
        {
            //cash = 40;
            questPoints = 0;
            health      = 10;
            direction   = Direction.Up;
            rand        = new Random();
            log         = new Quests.QuestLog();

            color = Color.White;
        }
        /// <summary>
        /// Creates a new Player
        /// </summary>
        /// <param name="location">A rectangle representing the location of the player</param>
        /// <param name="fileName">The location of the sprite in the files</param>
        public Player(FloatRectangle location, Sprite sprite)
            : base(location, sprite, 10, null, 40)
        {
            //cash = 40;
            questPoints = 0;
            health = 10;
            direction = Direction.Up;
            rand = new Random();
            log = new Quests.QuestLog();

            color = Color.White;
        }