Ejemplo n.º 1
0
 public override bool ConditionCheck(GameFrameworkManager GameManager, GameState CurrentState)//TODO: pass the active state as a parameter
 {
     if (CurrentState.GetType() != typeof(Playing))
     {
         return(false);                                           //do not go to win if we aren't playing
     }
     return((GameManager.ActiveGameState.GetType() == typeof(Playing)) && (EventManager.EventListComplete));
 }
Ejemplo n.º 2
0
 public override bool ConditionCheck(GameFrameworkManager GameManager, GameState CurrentState)
 {
     //Debug.Log(PlayingState.ActivePlayer.Inventory.GetResource(FuelResource));
     //Debug.Log(RelayController.InRange);
     if (PlayingState.ActivePlayer == null)
     {
         return(false);                                   //Do not go to gameover if the player is null, Prevents error spam
     }
     if (CurrentState.GetType() != typeof(Playing))
     {
         return(false);                                           //do not go to game over if we aren't playing
     }
     return(
         (PlayingState.ActivePlayer.Inventory.GetResource(FuelResource) <= 0) || //check if the player is out of fuel
         ((!RelayController.InRange)) || //check if the player is out of range
         ShipDestroyed
         );
 }
Ejemplo n.º 3
0
 public virtual bool TransitionCheck(GameFrameworkManager GameManager)
 {
     return(true);
 }
Ejemplo n.º 4
0
 public virtual bool ConditionCheck(GameFrameworkManager GameManager, GameState CurrentState)
 {
     return(true);
 }
Ejemplo n.º 5
0
 private void Start()
 {
     GameFrameworkManager.PrintPlayerLoop();
 }