Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11871 for code/branches


Ignore:
Timestamp:
Apr 16, 2018, 11:59:53 PM (7 years ago)
Author:
dreherm
Message:

Tes Game 6

Location:
code/branches/3DPacman_FS18/src/modules/Pacman
Files:
2 edited

Legend:

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

    r11870 r11871  
    7676
    7777        bcolli = false;
    78         for(int nrghost = 0, (nrghost<3) && (!bcolli), ++nrghost){
     78        for(int nrghost = 0; (nrghost<3) && (!bcolli); ++nrghost){
    7979            bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition)
    8080        }
     
    8585        i = 0;
    8686        for(PacmanPointSphere* nextsphere : ObjectList<PacmanPointSphere>()){
    87             if(collis(nextsphere.getPosition(), currentPosition)){
     87            if(collis(nextsphere->getPosition(), currentPosition)){
    8888                takePoint(nextsphere);
    8989            }
     
    120120        if(point == totallevelpoint) this->levelUp;
    121121
    122         Vector3 postaken = taken.getPosition();
     122        Vector3 postaken = taken->getPosition();
    123123        postaken.y = -50;
    124         taken.setPosition(postaken);
     124        taken->setPosition(postaken);
    125125    }
    126126
     
    149149    void Pacman::playerPreSpawn(PlayerInfo* player)
    150150    {
     151        PlayerInfo* playerInfo_;
    151152        this->playerInfo_ = player;
    152153        if(lives <= 0)
  • code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h

    r11870 r11871  
    4040#include "PacmanPointSphere.h"
    4141#include "Highscore.h"
     42#include "PlayerInfo.h"
    4243
    4344
Note: See TracChangeset for help on using the changeset viewer.