28#ifndef OBJECTSPACMANPME_H
29#define OBJECTSPACMANPME_H
35class PacManStateInit :
public State
38 explicit PacManStateInit(
const string&);
47class PacManStateEvading :
public State
50 explicit PacManStateEvading(
const string&);
53 Sint32 iTX, iTY, iITX, iITY;
58class PacManStateChasing :
public State
61 explicit PacManStateChasing(
const string&);
70class PacManStateDeath :
public State
73 explicit PacManStateDeath(
const string&);
79class PacMan :
public Actor
82 friend class PacManStateInit;
83 friend class PacManStateEvading;
84 friend class PacManStateChasing;
85 friend class PacManStateDeath;
88 PacMan(Sint32 iMX, Sint32 iMY, GameField* GF);
96 Sint32 msgPelletPowerEaten(Sint32, Sint32);
97 Sint32 msgGhostCollision();
101 Sint32 applyMovementRules(Sint32, Sint32);
105 Sint32 iPointsForEatingGhostsPerPelletPower;
108 PacManStateInit* pStateInit;
109 PacManStateEvading* pStateEvading;
110 PacManStateChasing* pStateChasing;
111 PacManStateDeath* pStateDeath;