示例#1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="pToken">Token to be associated with the mind.</param>
 public OrangeFishMind(X2DToken pToken)
 {
     /* LEARNING PILL: associating a mind with a token
      * In order for a mind to control a token, it must be associated with the token.
      * This is done when the mind is constructed, using the method Possess inherited
      * from class AIPlayer.
      */
     this.Possess(pToken);       // Possess token.
 }
示例#2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="pToken">Token to be associated with the mind.</param>
 public AquariumMind(X2DToken pToken)
 {
     this.Possess(pToken);       // Possess token.
 }
示例#3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="pToken">Token to be associated with the mind.</param>
 public PiranhaMind(X2DToken pToken)
 {
     this.Possess(pToken);       // Possess token.
     facingDirectionX = 1;       // Current direction the fish is facing.
 }
示例#4
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="pToken">Token to be associated with the mind.</param>

        public PiranhaMind(X2DToken pToken)
        {
            this.Possess(pToken);
        }