Beispiel #1
0
        public void Build(GameObject monster)
        {
            statSet         = CreateStatSet(monster);
            skillSet        = CreateSkillSet(monster);
            weaponComponent = CreateWeaponComponent(monster);
            rotation        = CreateRotation(monster, skillSet);

            if (statSet == null)
            {
                throw new ArgumentNullException("statSet");
            }
            if (skillSet == null)
            {
                throw new ArgumentNullException("skillSet");
            }
            if (weaponComponent == null)
            {
                throw new ArgumentNullException("weaponComponent");
            }
            if (rotation == null)
            {
                throw new ArgumentNullException("rotation");
            }

            CreateBody(monster);
            CreateComponents(monster);
        }
Beispiel #2
0
        public static SkillRotation CreateBlobRotation(GameObject blob, SkillSet blobSkillSet)
        {
            SkillRotation rotation = new SkillRotation(blob, blobSkillSet);

            rotation.AddToRotation("attack", 0);
            rotation.AddToRotation("smash", 1);
            rotation.AddToRotation("beam", 2);

            return(rotation);
        }
Beispiel #3
0
        public static SkillRotation CreateCrawlerRotation(GameObject crawler, SkillSet crawlerSkills)
        {
            SkillRotation rotation = new SkillRotation(crawler, crawlerSkills);

            rotation.AddToRotation("attack", 0);
            rotation.AddToRotation("blood fury", 5);
            rotation.AddToRotation("whirlwind", 10);

            return(rotation);
        }
Beispiel #4
0
        public static SkillRotation CreateZombieRotation(GameObject zombie, SkillSet zombieSkillSet)
        {
            SkillRotation rotation = new SkillRotation(zombie, zombieSkillSet);

            rotation.AddToRotation("attack", 0);
            rotation.AddToRotation("slam", 5);
            rotation.AddToRotation("rage", 8);
            rotation.AddToRotation("meat wall", 10);

            return(rotation);
        }