provide a getter for the owning agent in AgentData

This commit is contained in:
Stephen Birarda 2013-05-24 12:32:00 -07:00
parent 81307939d4
commit 6158410658

View file

@ -14,8 +14,11 @@ class Agent;
class AgentData {
public:
AgentData(Agent* owningAgent);
virtual ~AgentData() = 0;
virtual int parseData(unsigned char* sourceBuffer, int numBytes) = 0;
Agent* getOwningAgent() { return _owningAgent; }
protected:
Agent* _owningAgent;
};