internal override bool initPhase(int phase)
 {
     if (phase < 1 || phase > 3) return false;
     if (phase == 2) {
         //enable main boss
         Path p = new Path(boss);
         boss.setVisable(true);
         p.addLoc(new Vector2f(450, 475), "Frazier: noooooooo pupster!");
         p.addLoc(new Vector2f(450, 350));
         p.addLoc(new Vector2f(600,200));
         InGame.getInstance().addScript(new Script(1, p));
         boss.updateThreat(dog.getFirstThreat(), 5);
         boss.updateThreat(InGame.getInstance().getAlivePlayerMoveables(), 1);
         boss.reOrgThreat();
         InGame.getInstance().setMainEnemy(boss);
         //and debuff dog
         dog.setLeashed(true);
         return true;
     } else if (!dogEnrage && !boss.isDead() && phase == 3) {
         //enrage boss
         boss.setDogEnrage();
         InGame.getInstance().addScreenNote("FRAIZER: NOOOOOOOOO EDDDI");
         dogEnrage = true;
     }
     return true;
 }
Beispiel #2
0
        double startTime; //seconds

        #endregion Fields

        #region Constructors

        internal Script(int startTime, Path path)
        {
            this.startTime = startTime;
            mType = type.path;
            this.path = path;
        }