Example #1
0
    public void ResetValues()
    {
        zoneTotalInfectionLevel   = 100;
        zoneCurrentInfectionLevel = 100;

        activeEnemies = 0;
        //activeSpiders = 0;
        activeVortex  = 0;
        activeTurrets = 0;

        activeDevices.Clear();
        timeSinceLastDeviceAttack = 0f;
        infectingDeviceSpiders    = 0;

        timeRemainingToNextPlayerAttack = 0f;

        attackingPlayerEnemies    = 0;
        attackingPlayerSpiders    = 0;
        attackingPlayerMosquitoes = 0;
        activeMosquitoMainShots   = 0;
        activeMosquitoWeakShots   = 0;

        timeRemainingToNextDeviceInfect = enemyMng.timeBetweenDeviceInfects;

        worm = null;
    }
 public void SetBlackboard(WormBlackboard bb)
 {
     this.bb                 = bb;
     head                    = bb.head;
     currentDamage           = 0;
     currentDamageWrongColor = 0;
 }
Example #3
0
    public void SetBlackboard(WormBlackboard bb)
    {
        this.bb = bb;

        spawningState      = new WormAISpawningState(bb);
        wanderingState     = new WormAIWanderingState(bb);
        belowAttackState   = new WormAIBelowAttackState(bb);
        aboveAttackState   = new WormAIAboveAttackState(bb);
        meteorAttackState  = new WormAIMeteorAttackState(bb);
        knockOutState      = new WormAIKnockOutState(bb);
        headDestroyedState = new WormAIHeadDestroyedState(bb);
        dyingState         = new WormAIDyingState(bb);
    }
 public WormAISpawningState(WormBlackboard bb) : base(bb)
 {
 }
 public WormAIBaseState(WormBlackboard bb)
 {
     this.bb = bb;
     head    = bb.head;
     headTrf = bb.headTrf;
 }
 public void SetBlackboard(WormBlackboard bb)
 {
     this.bb = bb;
 }
 public WormAIDyingState(WormBlackboard bb) : base(bb)
 {
 }
Example #8
0
 public WormAIWanderingState(WormBlackboard bb) : base(bb)
 {
 }
 public WormAIKnockOutState(WormBlackboard bb) : base(bb)
 {
 }
Example #10
0
 public WormAIBelowAttackState(WormBlackboard bb) : base(bb)
 {
 }
 public WormAIHeadDestroyedState(WormBlackboard bb) : base(bb)
 {
 }
 public WormAIMeteorAttackState(WormBlackboard bb) : base(bb)
 {
 }
 public WormAIAboveAttackState(WormBlackboard bb) : base(bb)
 {
 }