#include <spadescreatesenseevent.h>
Public Member Functions | |
SpadesCreateSenseEvent (spades::SimTime t, spades::AgentID a) | |
virtual | ~SpadesCreateSenseEvent () |
virtual void | Print (std::ostream &o) const |
virtual bool | realizeEventWorldModel (spades::WorldModel *pWM) |
virtual spades::SenseEvent * | createSense (spades::WorldModel *p) |
It's purpose is to create a SenseEvent and to schedule it's successor SpadesCreateEvent.
A note about the implementation: SpadesCreateSenseEvent uses the SpadesServer and the GameControlServer to do it's job. However it cannot be zeitgeist class, as this involves that the corresponding class object holds a shared pointer to every instance of this class.
However spades is not aware of these shared pointers and destructs a registered ParamStorer instance using delete without notifying the shared pointers. This would result in dangling references.
Definition at line 47 of file spadescreatesenseevent.h.
|
Definition at line 50 of file spadescreatesenseevent.h. |
|
Definition at line 53 of file spadescreatesenseevent.h. |
|
Definition at line 87 of file spadescreatesenseevent.cpp. References oxygen::SpadesServer::GetGameControlServer(), zeitgeist::Object::GetLog(), and oxygen::SpadesServer::GetTimePerStep(). Here is the call graph for this function: ![]() |
|
Definition at line 35 of file spadescreatesenseevent.cpp. |
|
Definition at line 40 of file spadescreatesenseevent.cpp. References oxygen::SpadesServer::GetGameControlServer(), zeitgeist::Object::GetLog(), oxygen::SpadesServer::GetSimEngine(), and oxygen::SpadesServer::GetTimePerStep(). Here is the call graph for this function: ![]() |