Difference between revisions of "Entity Creation"
(Created page with "To create an entity follow the steps bellow #decide which super-type you want to use (Entity Hierarchy) #add the entity to the enum eEntityType #create the entity class ##...") |
(No difference)
|
Latest revision as of 14:12, 18 December 2012
To create an entity follow the steps bellow
- decide which super-type you want to use (Entity Hierarchy)
- add the entity to the enum eEntityType
- create the entity class
- add action proxi interfaces (bw.body.io.actuators.actionProxies)
- implement all nessecary methodes (form superclasses or interfaces)
- getDefaultProperties() - load the default properties of this class. This Function should also call the getDefaultProperties() methode of the super class (see Entity Hierarchy)
- applyProperties() - applies the properties
- getEntityType() - returns the type of the entity
- add the class to the entity factory (clsEntityFactor.fillEntityMap())