Exemple #1
0
        public virtual bool IsOnBoardCompleted_Game()
        {
            //if (!bOnBoardCompleted)
            //    return false;

            MCgPawn pawn = GetMyPawn();

            if (pawn == null)
            {
                return(false);
            }
            if (pawn.PlayerState != this)
            {
                return(false);
            }
            return(true);
        }
Exemple #2
0
        public virtual MCgPawn GetMyPawn()
        {
            if (LinkedPawn != null)
            {
                return(LinkedPawn);
            }

            MCgGameState gameState = MCgGameState.Get();

            foreach (MCgPawn pawn in gameState.Pawns)
            {
                if (pawn.PlayerState == this)
                {
                    LinkedPawn = pawn;
                }
            }
            return(LinkedPawn);
        }
Exemple #3
0
 public static IEnumerator HandleRespawnTimer_Internal(MCgPawn p)
 {
     yield return(null);
 }
Exemple #4
0
 public virtual void Possess(MCgPawn pawn)
 {
     Pawn             = pawn;
     Pawn.PlayerState = PlayerState;
 }