[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Thu Nov 22 16:42:56 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/11/22 16:42
User        : tchize
Edit Summary: 

@@ -265,21 +265,25 @@
  Returns ''1'' if string matches the pattern, ''0'' else.
  
  Pattern can be a regular expression FIXME specifications
  
- ===== Crossfire.Archetype methods and attributes =====
+ 
+ ===== Archetype class =====
  This represents an archetype, from which all objects are derived.
  Pointer to such item can be obtained through the ''Crossfire.Object.Archetype'' or the list returned by ''Crossfire.GetArchetypes()''.
  
- Properties:
-   * Clone: returns a ''Crossfire.Object'' representing the default values for items of that archetype. Will never be ''None''. Its values can't be changed (but trying to change one will not result in any error)
-   * Head: archetype to which this archetype is linked to. Will be ''None'' if not applicable
-   * Name: archetype's name
-   * Next: next archetype in the archetype list. Will be ''None'' for last item
-   * More: next archetype linked to current archetype. Will be ''None'' for last item
- 
- Methods:
-   * NewObject: returns a ''Crossfire.Object'' having this archetype as type. It isn't on any map or in any inventory, so should be inserted somewhere or deleted if not used.
+ ==== Clone ====
+ A ''Crossfire.Object'' property representing the default values for items of that archetype. Will never be ''None''. Its values can't be changed (but trying to change one will not result in any error)
+ ==== Head ====
+ archetype to which this archetype is linked to. Will be ''None'' if not applicable
+ ==== Name ====
+ archetype's name
+ ==== Next ====
+ next archetype in the archetype list. Will be ''None'' for last item
+ ==== More ====
+ next archetype linked to current archetype. Will be ''None'' for last item
+ ==== NewObject() ====
+ Returns a ''Crossfire.Object'' having this archetype as type. It isn't on any map or in any inventory, so should be inserted somewhere or deleted if not used.
  
  ===== Crossfire.Object methods and attributes =====
  FIXME link to dev:objects 's fields? split flag & such info. Make a table with property / mapping to object / Python type
  Properties in **bold** are read-write, others are read-only. Most properties are mapped to fields of the ''object'' structure. ''Boolean'' values are mapped to the various flags.


IP-Address  : 91.177.206.171
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1195771136
New Revision: http://wiki.metalforge.net/doku.php/cfpython

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list