Difference between revisions of "Entity Creation"

From SIMA wiki
Jump to: navigation, search
(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

  1. decide which super-type you want to use (Entity Hierarchy)
  2. add the entity to the enum eEntityType
  3. create the entity class
    1. add action proxi interfaces (bw.body.io.actuators.actionProxies)
    2. implement all nessecary methodes (form superclasses or interfaces)
      1. getDefaultProperties() - load the default properties of this class. This Function should also call the getDefaultProperties() methode of the super class (see Entity Hierarchy)
      2. applyProperties() - applies the properties
      3. getEntityType() - returns the type of the entity
  4. add the class to the entity factory (clsEntityFactor.fillEntityMap())