Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11944


Ignore:
Timestamp:
May 4, 2018, 11:42:09 PM (6 years ago)
Author:
dreherm
Message:

Afraid Test 6

Location:
code/branches/3DPacman_FS18/src/modules/pacman
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/Pacman.cc

    r11943 r11944  
    4848        point = 0;
    4949        level = 1;
    50         afraid = false;
    51         timer = 0;
    5250
    5351       // setHUDTemplate("PacmanOrxHUD");
     
    137135    }
    138136
    139     void setAfraid(){
    140         this->afraid = true;
    141         this->timer = 10; //Set timer to 10 seconds
     137    void Pacman::setAfraid(){
     138        afraid = true;
     139        timer = 10; //Set timer to 10 seconds
    142140    }
    143141
  • code/branches/3DPacman_FS18/src/modules/pacman/Pacman.h

    r11942 r11944  
    9494            PacmanGelb* player;
    9595            bool bcolli = false;
    96             float timer;
     96            float timer = 0;
    9797            Vector3 startposplayer = Vector3(0,10,245);
    9898            int totallevelpoint = 3;
    9999            //bool firstGame;
    100             bool afraid;
     100            bool afraid = false;
    101101           
    102102       private:
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc

    r11933 r11944  
    426426    }
    427427
    428     void changemovability(){
     428    void PacmanGhost::changemovability(){
    429429        if(dontmove){
    430430         dontmove = false;}
Note: See TracChangeset for help on using the changeset viewer.