home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar Special 2004 August
/
GSSH0804.iso
/
Action
/
Parsec47
/
Parsec47.exe
/
p47
/
src
/
abagames
/
util
/
sdl
/
GameManager.d
next >
Wrap
Text File
|
2003-11-29
|
994b
|
47 lines
/*
* $Id: GameManager.d,v 1.1.1.1 2003/11/28 17:26:30 kenta Exp $
*
* Copyright 2003 Kenta Cho. All rights reserved.
*/
module abagames.util.sdl.GameManager;
import abagames.util.PrefManager;
import abagames.util.sdl.MainLoop;
import abagames.util.sdl.Screen;
import abagames.util.sdl.Input;
/**
* Manage the lifecycle of the game.
*/
public class GameManager {
public:
int status;
protected:
MainLoop mainLoop;
Screen abstScreen;
Input input;
PrefManager abstPrefManager;
private:
public void setMainLoop(MainLoop mainLoop) {
this.mainLoop = mainLoop;
}
public void setUIs(Screen screen, Input input) {
abstScreen = screen;
this.input = input;
}
public void setPrefManager(PrefManager prefManager) {
abstPrefManager = prefManager;
}
public abstract void init();
public abstract void start();
public abstract void close();
public abstract void move();
public abstract void draw();
}