Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2013, 4:02:46 PM (11 years ago)
Author:
maxima
Message:

Only a few comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formationupdate/src/orxonox/worldentities/pawns/Pawn.cc

    r9613 r9614  
    308308    }
    309309
    310     // Two functions to find the slaves of a Pawn
     310
     311    /* Two functions to find the slaves of a Pawn
     312     *
     313     */
    311314    bool Pawn::hasSlaves()
    312315    {
    313         /* TEST TEST This is used to find out if the current pawn is also
    314                  * the master of the formation and to find his slaves.
    315                  *
    316                  */
    317316                for (ObjectList<FormationController>::iterator it =
    318317                         ObjectList<FormationController>::begin();
     
    327326                }
    328327                return false;
    329                 /* TEST TEST */
    330328    }
    331329
     
    358356            if (this->getPlayer() && this->getPlayer()->getControllableEntity() == this)
    359357            {
    360                 if(this->hasSlaves())
     358                /* Do different things if Pawn is the Master of a Formation
     359                 * Doesn't work yet
     360                 *
     361                 * if(this->hasSlaves())
    361362                {
    362363                                // start to control a slave
    363364                                this->getPlayer()->startControl(this->getSlave()->getControllableEntity());
    364                 }
     365                }*/
    365366                this->getPlayer()->stopControl();
    366367            }
    367             /*if (GameMode::isMaster())
     368            if (GameMode::isMaster())
    368369            {
    369370//                this->deathEffect();
    370371                this->goWithStyle();
    371             }*/
     372            }
    372373        }
    373374    }
Note: See TracChangeset for help on using the changeset viewer.