Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 17 years ago

Last modified 17 years ago

#174 reopened enhancement

LoadParam, LoadElement and LoadAttrib

Reported by: bensch Owned by: nobody
Priority: blocker Milestone: Old Orxonox tickets orx-v0
Component: AI Version:
Keywords: Cc:
Referenced By: References:

Description

LoadParam extensions

Currently it is only possible to read in parameters with the LoadParam program. In the future it would be greate to have a more elaborate way to do this.

Normally one loads an Element from a TiXmlElement. This Element is then called the root in the loadParams() functions

Thereafter the element is parsed for subelements. These subelements can then be looked at as a root. This root can be used to call another function.

LoadElement

Now the extension would be to have a handler for the TiXmlElement called the LoadElement that can be either a file or a TiXmlElement* root.

like this it is possible to load a spaceship from a file, if it is used in many different levels.

LoadAttrib

The Attrib is an attribute of a Element, that loads from the following code:

<element attrib="someAttrib"/>

This is different from the Element, as it does not require any '<' or '>', and is the default way for identifier values.

Change History (3)

comment:1 Changed 17 years ago by bknecht

  • Resolution set to invalid
  • Status changed from new to closed

comment:2 Changed 17 years ago by bknecht

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:3 Changed 17 years ago by bknecht

  • Milestone set to Old Orxonox tickets
Note: See TracTickets for help on using tickets.