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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Fri Nov 24 10:33:41 CST 2006


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

Date        : 2006/11/24 10:33
User        : ryo
Edit Summary: Python uses None, not NULL :)

@@ -84,12 +84,12 @@
  
  ===== Crossfire module methods =====
  
  ==== WhoAmI ====
- Returns the ''Crossfire.Object'' to from which the event being handled was raised. Can be ''NULL''.
+ Returns the ''Crossfire.Object'' to from which the event being handled was raised. Can be ''None''.
  
  ==== WhoIsActivator ====
- Returns the ''Crossfire.Object'' having caused the event being handled. Can be ''NULL''.
+ Returns the ''Crossfire.Object'' having caused the event being handled. Can be ''None''.
  
  ==== WhoIsOther ====
  ==== WhatIsMessage ====
  ==== ScriptName ====
@@ -134,17 +134,17 @@
  ==== ReadyMap ====
  Parameter:
    * map name (string)
  
- Loads specified map, and returns a ''Crossfire.Map'' object wrapping it. Will return ''NULL'' if map couldn't be found.
+ Loads specified map, and returns a ''Crossfire.Map'' object wrapping it. Will return ''None'' if map couldn't be found.
  
  FIXME what about unique player map? Or only maps in /maps?
  
  ==== FindPlayer ====
  Parameter:
    * player name (string) FIXME partial?
  
- Returns a ''Crossfire.Player'' object for specified player, based on name, or ''NULL'' if not found.
+ Returns a ''Crossfire.Player'' object for specified player, based on name, or ''None'' if not found.
  
  ==== MatchString ====
  Parameters: FIXME check order
    * string to be searched
@@ -172,9 +172,9 @@
  ==== CreateObjectByName ====
  Parameters:
    * archetype name (string) FIXME make sure
  
- Returns object of specified archetype, or ''null'' if archetype wasn't found.
+ Returns object of specified archetype, or ''None'' if archetype wasn't found.
  
  ==== GetPrivateDictionary ====
  Returns a Python ''dictionary'' the script can use to store data between runs. This data is not shared with other scripts.
  


IP-Address  : 213.174.127.3
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1164385789
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