Inheritance: GameEngine.GameObjects.Entity, ISizedEntity
Beispiel #1
0
        private void Construct(float x, float y)
        {
            _moveSpeed = 2.0f;

            MaxHP = 2000;
            HP = MaxHP;

            XP = 0;
            Strength = 10;
            AttackPriority = 5;

            Faction = "Allies";
            CollisionGroup = "Shadow";
            LightSource = new LightSource();
            LightSource.Width = 32 * 8;
            LightSource.Height = 32 * 8;
            LightSource.Pulse = 0.15f;
            LightSource.Color = Color.White;
            LightSource.PositionType = LightPositionType.Relative;

            QuickEquip("PlateHelmet");
            QuickEquip("PlatePants");
            QuickEquip("PlateGloves");
            QuickEquip("PlateChest");
            QuickEquip("PlateBoots");
            QuickEquip("Rapier");
        }
Beispiel #2
0
        private void Construct(float x, float y)
        {
            HP = 2000;
            XP = 0;

            CollisionDetection = true;
            LightSource = new LightSource();
            LightSource.Width = 32 * 8;
            LightSource.Height = 32 * 8;
            LightSource.Pulse = 0.15f;
            LightSource.Color = Color.White;
            LightSource.PositionType = LightPositionType.Relative;

            Equip(ItemRepository.GameItems["RobeHood"]);
            Equip(ItemRepository.GameItems["RobeSkirt"]);
            Equip(ItemRepository.GameItems["PlateGloves"]);
            Equip(ItemRepository.GameItems["RobeShirt"]);
            Equip(ItemRepository.GameItems["PlateBoots"]);
        }