Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 3:36:40 PM (7 years ago)
Author:
dreherm
Message:

Testversion 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.h

    r11979 r11992  
    2121 *
    2222 *   Author:
    23  *      Oli Scheuss
     23 *      Marc Dreher
    2424 *   Co-authors:
    25  *      Damian 'Mozork' Frick
     25 *      ..
    2626 *
    2727 */
     
    3535
    3636#include "worldentities/ControllableEntity.h"
    37 //Test
     37
    3838namespace orxonox {
    3939
     
    5151            void resetGhost();
    5252
    53             void setnewTarget(int firstdec);
    54             void setnewTarget(int firstdec, int seconddec);
    55             void setnewTarget(int firstdec, int seconddec, int thirddec);
    56             void setnewTarget(int firstdec, int seconddec, int thirddec, int fourthdec);
    5753            void changewith(PacmanGhost* otherghost);
    5854            void levelupvelo();
     
    6157            void changemovability();
    6258            bool dontmove = false;
    63             bool lockmove = false;
     59
     60        private:
     61            int decision = 0;
     62            Vector3 resetposition = Vector3(0,10,15);
     63            Vector3 velocity;
     64            int speed = 20;
    6465
    6566            Vector3 actuelposition;
     
    6768            int target_x = 0;
    6869            int target_z = 0;
    69             Vector3 velocity;
    70             Vector3 oldvelocity = Vector3(2,0,0);
    71             int speed = 20;
     70            bool lockmove = false;
    7271
    73         private:
    74             int decision = 0; //Gives the random which way information to the ghost.
    75             Vector3 resetposition = Vector3(0,10,15);
     72            void setnewTarget(int firstdec);
     73            void setnewTarget(int firstdec, int seconddec);
     74            void setnewTarget(int firstdec, int seconddec, int thirddec);
     75            void setnewTarget(int firstdec, int seconddec, int thirddec, int fourthdec);
    7676    };
    7777
Note: See TracChangeset for help on using the changeset viewer.