コード例 #1
0
 /*
  * @name    CastPlayer()
  * @purpose This downcasts the correct player to wether or not it is a human or computer.
  *
  * @return  bool
  */
 public void CastPlayer()
 {
     if (ThePlayer.GetType() == typeof(Human))
     {
         ThePlayer = (Human)ThePlayer;
     }
     else
     {
         ThePlayer = (Computer)ThePlayer;
     }
 }