Пример #1
0
 public OpStrategy(Mover mover, HandController handController, Health health,
                   NpcSensorSight npcSensorSight, NpcSensorSound npcSensorSound) : base(mover, handController,
                                                                                        health, npcSensorSight, npcSensorSound)
 {
     HealthRetreatTolerance    = 400;
     retreatingMovementRoutine = new RetreatWhileDodgingMovementRoutine(Mover);
     engagingMovementRoutine   = new AdvanceWhileDodgingMovementRoutine(Mover);
     noEnemySightRoutine       = new LookAroundSightRoutine(Mover);
 }
 public CamperBehavior(Mover mover, HandController handController, Health health,
                       NpcSensorSight npcSensorSight, NpcSensorSound npcSensorSound) : base(mover, handController,
                                                                                            health, npcSensorSight, npcSensorSound)
 {
     HealthRetreatTolerance    = 600;
     retreatingMovementRoutine = new RetreatWhileDodgingMovementRoutine(Mover);
     noEnemySightRoutine       = new LookAroundSightRoutine(Mover);
     isCamping = false;
 }
 public CowboyBehavior(Mover mover, HandController handController, Health health,
                       NpcSensorSight npcSensorSight, NpcSensorSound npcSensorSound)
     : base(mover, handController, health, npcSensorSight, npcSensorSound)
 {
     HealthRetreatTolerance = 0;
     noEnemySightRoutine    = new LookAroundSightRoutine(Mover);
     DistanceSwitchFromAttackingToEngaging = 6f;
     DistanceSwitchFromEngagingToAttacking = 5f;
 }
Пример #4
0
		public CarefulBehavior(Mover mover, HandController handController, Health health,
			NpcSensorSight npcSensorSight, NpcSensorSound npcSensorSound) : base(mover, handController,
			health, npcSensorSight, npcSensorSound)
		{
			noEnemySightRoutine = new LookAroundSightRoutine(Mover);

			HealthRetreatTolerance = 800;
			DistanceSwitchFromAttackingToEngaging = 20f;
			DistanceSwitchFromEngagingToAttacking = 19f;
		}