[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Mon Apr 2 13:02:14 CDT 2007
A page in your DokuWiki was added or changed. Here are the details:
Date : 2007/04/02 13:02
User : ryo
Edit Summary: remove obsolete stuff, add new constants
@@ -57,17 +57,20 @@
===== Constants =====
Constants are available to wrap values used in Crossfire code like object types, movements, ...
- They are available through ''Crossfire.xxx.VALUE'', where ''xxx'' is the constant type and ''VALUE'' the value as in the C sources code in uppercase.
+ They are available through ''Crossfire.xxx.VALUE'', where ''xxx'' is the constant type and ''VALUE'' the value as in the C sources code in uppercase, without specific prefix (ie F_TRUE becomes TRUE).
For each constant group ''xxx'' there exists a ''xxxName'' dictionary object containing the name of the value as a string.
The following constant types exist:
* ''Direction'': contains NORTH, NORTHEAST, ..., NORTHWEST
* ''Type'': object type, as defined in ''include/define.h''
* ''Move'': movement types, as defined in ''include/define.h''
* ''MessageFlag'': NDI_xxx constants, as defined in ''include/newclient.h''
+ * ''CostFlag'': F_xxx constants, as defined in ''include/define.h'' (without the F_ prefix)
+
+ {FIXME} do a nice table, with link to values?
Example:
<code>
whoami.Say("%s => %d"%(Crossfire.DirectionName[Crossfire.Direction.NORTH], Crossfire.Direction.NORTH))
@@ -121,23 +124,8 @@
Returns the system directory containing player files.
==== DataDirectory ====
Returns the system directory containing read-only data.
-
- ==== DirectionNorth ====
- ==== DirectionNorthEast ====
- ==== DirectionEast ====
- ==== DirectionSouthEast ====
- ==== DirectionSouth ====
- ==== DirectionSouthWest ====
- ==== DirectionWest ====
- ==== DirectionNorthWest ====
- ==== CostFlagTrue ====
- ==== CostFlagBuy ====
- ==== CostFlagSell ====
- ==== CostFlagNoBargain ====
- ==== CostFlagIdentified ====
- ==== CostFlagNotCursed ====
==== ReadyMap ====
Parameter:
* map name (''String'')
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1175536311
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