[CF-Devel] Python/casino stuff

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Fri Oct 24 15:50:31 CDT 2003


Nicolas Weeger wrote:
>>
     
      The way the objects are being created now is as follows (pretend this 
     
     >>
     
      is pseudo code even though it is Python :))
     
     >>
     
     
     >>
     
      object = CFPython.CreateObject(cointype,(x,y))  <-- creates object
     
     >>
     
      CFPython.SetQuantity(object, payoff)  <-- sets quantity
     
     >
     
     
     >
     
     
     >
     
      This why it doesn't work: CreateObject creates the object, but 
     
     >
     
      ultimately calls insert_ob_in_map which will merge newly created object 
     
     >
     
      with existing object on the square...
     
     >
     
     
     
Then I should maybe add a reusable function to the object broker script 
I put in to do something like this when creating objects:

  object = CFPython.CreateObject(cointype,(x,y))  <-- creates object
  number = CFPython.GetQuantity(object) <-- gets quantity of objects
  CFPython.SetQuantity(object, payoff+number)  <-- sets quantity


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list