32#include "MemoryManager.h"
33#define PME_RESOURCES "game.cdc"
36#define RM_PANEL_MENU 0xAA000
37#define RM_PANEL_GAME 0xAA001
39#define RM_FONT_CONSOLE 0xAB000
40#define RM_FONT_INFO 0xAB001
41#define RM_FONT_SCORE 0xAB002
43#define RM_MUS_MENU 0xAC000
44#define RM_MUS_GAME 0xAC001
46#define RM_SND_THUNDER 0xAD001
47#define RM_SND_CLICKOK 0xAD002
48#define RM_SND_CLICKCANCEL 0xAD003
49#define RM_SND_CLICKCANCEL2 0xAD004
50#define RM_SND_EXIT 0xAD005
51#define RM_SND_GAMEABORT 0xAD006
52#define RM_SND_GAMEOVER 0xAD007
53#define RM_SND_GAMESTARTING 0xAD008
54#define RM_SND_GAMEPLAYERDEATH 0xAD009
55#define RM_SND_GAMEEATPELLET 0xAD010
56#define RM_SND_GAMEEATPELLETPOWER 0xAD011
57#define RM_SND_GAMEEATGHOST 0xAD012
59#define RM_IMG_ICON 0xAE000
60#define RM_IMG_MENU 0xAE001
61#define RM_IMG_HOF 0xAE002
63#define RM_SPR_PACMAN 0xBA000
64#define RM_SPR_GHOSTRED 0xBA002
65#define RM_SPR_GHOSTPINK 0xBA003
66#define RM_SPR_GHOSTBLUE 0xBA004
67#define RM_SPR_GHOSTORANGE 0xBA005
68#define RM_SPR_PELLET 0xBA006
69#define RM_SPR_PELLETPOWER 0xBA007
70#define RM_SPR_TARGETS 0xBA008
74#define ID_STANDARDGAME 0xDF01
75#define ID_EVOLUTIONGAME 0xDF02
76#define ID_WORKBENCHGAME 0xDF03
77#define ID_HALLOFFAME 0xDF05
78#define ID_GAME_LABEL 0xDF06
79#define ID_GAME_ENTERNAME 0xDF07
80#define ID_GAME_CLOSE 0xDF08
83class ResourceManager :
public CMemPME
86 static ResourceManager& Instance();
87 static void Terminate();
91 Sint32 get(Sint32 iID)
const;
92 Sint32 setPacManDeathAnim(Sint32);
97 static ResourceManager* mInstance;
100 Sint32 bPacManDeathAnim;
103 Sint32 guiMenu, guiGame;
106 Sint32 fntConsole, fntInfo, fntScore;
113 Sint32 sndThunder, sndClickOK, sndClickCancel, sndClickCancel2, sndExit;
114 Sint32 sndGameAbort, sndGameOver, sndGameStarting, sndGamePlayerDeath, sndGameEatPellet, sndGameEatPelletPower, sndGameEatGhost;
117 Sint32 imgIcon, imgMenu, imgHallOfFame;
123 Sint32 sprPacman, sprGhostRed, sprGhostPink, sprGhostBlue, sprGhostOrange, sprTargets;
124 Sint32 sprPellet, sprPelletPower;