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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Jul 8 11:12:25 CDT 2012


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

Date        : 2012/07/08 11:12
User        : ryo
Edit Summary: update

@@ -725,8 +725,9 @@
  Arguments:
    * ''Crossfire.Object'' representing the spell to learn
  
  There is no learning failure. Note that any spell can be learned this way. Player will receive the message that the spell was learnt correctly.
+ 
  
  ==== Move ====
  Tries to move the object in a direction.
  
@@ -734,8 +735,19 @@
    * ''Number'', direction to move to. Should be one of ''Crossfire.Direction.xxx'' value.
  
  Return:
    * 1 if object could move
+   * 0 else
+ 
+ ==== MoveTo ====
+ Tries to move the object towards a specified destination. ''trunk'' only.
+ 
+ Arguments:
+   * ''Number'', x and y coordinates of the destination
+ 
+ Return:
+   * 2 if the object is blocked or no path to the goal
+   * 1 if object could move towards the goal
    * 0 else
  
  ==== OutOfMap ====
  Check a position on the object's map.


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