[Bf-blender-cvs] CVS commit: blender/source/gameengine/Ketsji/KXNetwork KX_NetworkMessageSensor.cpp KX_NetworkMessageSensor.h

Kester Maddock Christopher.Maddock.1 at uni.massey.ac.nz
Thu Apr 8 13:36:23 CEST 2004


kester (Kester Maddock) 2004/04/08 13:36:23 CEST

  Modified files:
    blender/source/gameengine/Ketsji/KXNetwork 
                                               KX_NetworkMessageSensor.cpp 
                                               KX_NetworkMessageSensor.h 
  
  Log:
  In NaN times I suggested a python function to get the subject of a
  Message using a python function of the MessageSensor.
  
  Thats a nice thing if you want complex message handling in one python
  script. Just get all messages, check the subject and do what you
  want. In the current situation you end up with several MessageSensors
  connected to the python script, instead of one Sensor and a smart
  script.
  
  Some developer (cant remember who) did implement that function, but
  however not the way I wanted (maybe I was not clear enough) ;-) So the
  getSubject() function will return whats entered in the "Subject:"
  filter field of the MessageSensor. Quite useless IMHO.
  
  So I added a new function getSubjects() which is similar to
  getBodies(), in fact I stole the code from there ;-)
  
  I left the getSubject() alone, because of backward compatibility
  (never saw someone using that function, but...)
  
  The future:
  
  In conjunction with a wildcard subject: filter field the getSubjects()
  function will be even more usefull.
  
  i.e. Player* will filter for PlayerScore, PlayerKill etc.
  
  -- Carsten Wartmann
  
  Revision  Changes    Path
  1.5       +35 -5     blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp
  1.7       +3 -1      blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.h



More information about the Bf-blender-cvs mailing list