Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
OpenSkyNet::Core::ObjectFactory Class Reference

#include <CObjectFactory.h>

Inheritance diagram for OpenSkyNet::Core::ObjectFactory:
OpenSkyNet::OgreCore::OgreObjectFactory

Public Types

enum  CREATION_FLAG {
  NONE, PHYSICAL, VISIBLE, PHYS_VIS,
  CAMERA
}
 

Public Member Functions

void destroyAllObjects (bool doDestroyPersistentData_)
 
virtual CD::ShapecreateShape (CD::SHAPE_TYPE shapeType_,...)
 
CD::ShapegetShape (Utils::uint index_)
 
virtual ObjectcreateObject (const char *name_, bool isPersistent_, CREATION_FLAG flag_,...)
 
ObjectgetObject (const char *name_)
 
const std::map< std::string,
Object * > & 
getObjects () const
 

Static Public Member Functions

static void createInstance ()
 
static ObjectFactory *& getInstance ()
 
static void shutDown ()
 

Protected Member Functions

 ObjectFactory ()
 

Static Protected Member Functions

static Utils::uint getColGroupUIntFromStr (const char *colGroup_)
 
static const char * getColGroupStrFromUInt (Utils::uint colGroup_)
 

Protected Attributes

std::vector< CD::Shape * > _nonPersistentShapes
 
std::map< std::string, Object * > _namesToObjs
 
std::vector< Object * > _nonPersistentObjs
 

Static Protected Attributes

static ObjectFactory_instance = 0
 

Detailed Description

Class to handle all game object creation and deletion.

Member Enumeration Documentation

Enumerator
NONE 
PHYSICAL 
VISIBLE 
PHYS_VIS 
CAMERA 

Constructor & Destructor Documentation

ObjectFactory::ObjectFactory ( )
protected

Member Function Documentation

static void OpenSkyNet::Core::ObjectFactory::createInstance ( )
inlinestatic
Object * ObjectFactory::createObject ( const char *  name_,
bool  isPersistent_,
CREATION_FLAG  flag_,
  ... 
)
virtual
CD::Shape * ObjectFactory::createShape ( CD::SHAPE_TYPE  shapeType_,
  ... 
)
virtual
void ObjectFactory::destroyAllObjects ( bool  doDestroyPersistentData_)

Free memory used by created objects without shutting the factory down.

const char * ObjectFactory::getColGroupStrFromUInt ( Utils::uint  colGroup_)
staticprotected
Utils::uint ObjectFactory::getColGroupUIntFromStr ( const char *  colGroup_)
staticprotected
static ObjectFactory*& OpenSkyNet::Core::ObjectFactory::getInstance ( )
inlinestatic
Object * ObjectFactory::getObject ( const char *  name_)
const std::map<std::string, Object*>& OpenSkyNet::Core::ObjectFactory::getObjects ( ) const
inline
CD::Shape* OpenSkyNet::Core::ObjectFactory::getShape ( Utils::uint  index_)
inline
void ObjectFactory::shutDown ( )
static

Member Data Documentation

ObjectFactory * ObjectFactory::_instance = 0
staticprotected
std::map<std::string, Object*> OpenSkyNet::Core::ObjectFactory::_namesToObjs
protected
std::vector<Object*> OpenSkyNet::Core::ObjectFactory::_nonPersistentObjs
protected
std::vector<CD::Shape*> OpenSkyNet::Core::ObjectFactory::_nonPersistentShapes
protected

The documentation for this class was generated from the following files: