mkRPG
Public Member Functions | Data Fields
Game Class Reference

The Game class gather the differents parts needed to describe a game. More...

#include <game.h>

Inheritance diagram for Game:
GameObject

Public Member Functions

int newIdent (GameObject *obj)
void aboutToDestroy (GameObject *obj)
GameObjectobject (int id)
Worldworld ()
MapcurrentMap ()
void setCurrentMap (Map *m)
QList< QString > actions () const
Actionaction (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
Worldw
Mapmap
QMap< int, Image * > picts
QMap< int, QString > strings
QMap< QString, Action * > aActions

Detailed Description

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)


Member Function Documentation

GameObject * Game::object ( int  id)

Returns a new unused identifiers

Note:
It should only be used by GameObject methods GameObject::init and GameObject::GameObject.

The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines