예제 #1
0
파일: Builders.cs 프로젝트: siquel/BeatEmUp
        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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }