Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 2:54:22 PM (5 years ago)
Author:
peterf
Message:

Improved formatting and added some comments to make the code more precise

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS19/src/modules/pacman/PacmanBrown.cc

    r12338 r12357  
    1616        this->target_x=0;
    1717        this->target_z=15;
    18         this->lastPlayerPassedPoint=Vector3(0,0,0); //Vector3(70,10,-135);
     18        this->lastPlayerPassedPoint=Vector3(0,0,0);
    1919         
    2020    }
     
    7979
    8080            this->ismoving=false;
    81             std::cout<<"weie"<<endl;
    8281        }
    8382       
    8483        //Check on which position the ghost has arrived and set new target
    8584        else{
    86             std::cout<<"naye"<<endl;
    8785                while(lockmove){};
    8886            lockmove = true;
     
    9290
    9391            Vector3 brownPos=Vector3(this->target_x, 10, this->target_z);
    94             std::cout<<brownPos<<endl;
    9592
    9693           
     
    9895                if(findpos(brownPos, Vector3(-215,10,-195))){
    9996                    this->isFleeing=false;
    100                     //Vector3 nextMoveP = getShortestPath(brownPos, this->lastPlayerPassedPoint);
    101                     //this->setNewTargetGhost(nextMoveP);
    10297                }
    10398                else{
     
    124119                        setNewTargetGhost(nextMove);
    125120                    }
    126 
     121                   
    127122            }
    128             std::cout<<this->isFleeing<<endl;
    129123
    130124
Note: See TracChangeset for help on using the changeset viewer.