|
mkRPG
|
The Game class gather the differents parts needed to describe a game. More...
#include <game.h>
Public Member Functions | |
| int | newIdent (GameObject *obj) |
| void | aboutToDestroy (GameObject *obj) |
| GameObject * | object (int id) |
| World & | world () |
| Map * | currentMap () |
| void | setCurrentMap (Map *m) |
| QList< QString > | actions () const |
| Action * | action (const QString &a) |
| QString | addAction (QString a, Action *act) |
| void | removeAction (const QString &a) |
| QString | renameAction (const QString &a, const QString &nv) |
Data Fields | |
|
ListD(i, I, mage,, s) private QMap< int, GameObject * > | objects |
| World * | w |
| Map * | map |
| QMap< int, Image * > | picts |
| QMap< int, QString > | strings |
| QMap< QString, Action * > | aActions |
The Game class gather the differents parts needed to describe a game.
It contains mainly the World, and the ressources used by it (images and strings)
For editing purposes, it contains also the active map (the one being editing)
| GameObject * Game::object | ( | int | id | ) |
Returns a new unused identifiers
1.7.6.1