blender/source/gameengine/Ketsji/KXNetwork
Kester Maddock 80485c2926 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
2004-04-08 11:36:22 +00:00
..
KX_NetworkEventManager.cpp Last of the config.h mods... 2002-11-25 15:29:57 +00:00
KX_NetworkEventManager.h Removed the config.h thing from the .h's in the source dir. 2002-12-27 13:11:01 +00:00
KX_NetworkMessageActuator.cpp Last of the config.h mods... 2002-11-25 15:29:57 +00:00
KX_NetworkMessageActuator.h Removed the config.h thing from the .h's in the source dir. 2002-12-27 13:11:01 +00:00
KX_NetworkMessageSensor.cpp In NaN times I suggested a python function to get the subject of a 2004-04-08 11:36:22 +00:00
KX_NetworkMessageSensor.h In NaN times I suggested a python function to get the subject of a 2004-04-08 11:36:22 +00:00
KX_NetworkObjectActuator.cpp Last of the config.h mods... 2002-11-25 15:29:57 +00:00
KX_NetworkObjectActuator.h Removed the config.h thing from the .h's in the source dir. 2002-12-27 13:11:01 +00:00
KX_NetworkObjectSensor.cpp Last of the config.h mods... 2002-11-25 15:29:57 +00:00
KX_NetworkObjectSensor.h Removed the config.h thing from the .h's in the source dir. 2002-12-27 13:11:01 +00:00
Makefile FreeBSD can use the exact same python includes as everyone else 2003-03-25 23:36:40 +00:00
SConscript SCons updates 2004-02-29 21:40:48 +00:00