Exemplo n.º 1
0
        public Player(Coord position)
            : base(Color.White, Color.Black, '@', "Player", position, (int)MapLayer.PLAYER, isWalkable: false,
                   isTransparent: true)
        {
            FOVRadius = 10;

            var stats = new Stats();

            stats[StatTypes.STRENGTH]  = 30;
            stats[StatTypes.MAGIC]     = 10;
            stats[StatTypes.DEXTERITY] = 20;
            stats[StatTypes.VITALITY]  = 25;
            stats[StatTypes.MAX_LIFE]  = 70;
            stats[StatTypes.LIFE]      = 50;
            stats[StatTypes.MAX_MANA]  = 10;
            stats[StatTypes.MANA]      = 0;
            stats[StatTypes.LGOL]      = 2;
            stats[StatTypes.MGOL]      = 1;
            AddGoRogueComponent(stats);

            var playerInventory = new Inventory();

            AddGoRogueComponent(playerInventory);
            playerInventory.AddItem(new HealthPotion(10));
            playerInventory.AddItem(new ManaPotion(5));
            playerInventory.AddItem(new Cap());
            playerInventory.AddItem(new SkullCap());
            playerInventory.AddItem(new SmallAxe());
            playerInventory.AddItem(new SmallAxe());

            var playerLevel = new PlayerLevel();

            AddGoRogueComponent(playerLevel);
            playerLevel.Init(1);
        }