From: <sv...@ww...> - 2005-10-15 21:29:25
|
Author: mkrose Date: 2005-10-15 14:29:19 -0700 (Sat, 15 Oct 2005) New Revision: 1632 Modified: trunk/CSP/SimCore/Battlefield/SimObject.h Log: Make several event hooks in SimObject protected instead of private. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1632 Modified: trunk/CSP/SimCore/Battlefield/SimObject.h =================================================================== --- trunk/CSP/SimCore/Battlefield/SimObject.h 2005-10-15 21:24:42 UTC (rev 1631) +++ trunk/CSP/SimCore/Battlefield/SimObject.h 2005-10-15 21:29:19 UTC (rev 1632) @@ -115,6 +115,7 @@ // HUMAN/AGENT ------------------------------------------------------- +private: void setHuman() { _debug("set human"); assert(isAgent()); @@ -131,12 +132,14 @@ onAgent(); } +protected: virtual void onHuman() { } virtual void onAgent() { } // LOCAL/REMOTE ----------------------------------------------------- +private: void setLocal() { _debug("set local"); if (!getFlags(F_INIT)) { @@ -161,12 +164,14 @@ onRemote(); } +protected: virtual void onLocal() { } virtual void onRemote() { } // AGGREGATE/DEAGGREGATE -------------------------------------------- +private: void aggregate() { _debug("aggregate"); assert(!isAggregated()); @@ -183,6 +188,7 @@ onDeaggregate(); } +protected: /** Called when an object that was deaggregated leaves all * deaggregation bubbles. * @@ -200,6 +206,7 @@ // SCENE MANAGEMENT ------------------------------------------------- +private: void enterScene() { _debug("enter scene"); assert(!isInScene()); @@ -216,6 +223,7 @@ onLeaveScene(); } +protected: /** Called before an object is added to the scene graph. * * This method is called even if no scene graph exists (e.g. on an @@ -233,6 +241,7 @@ // ------------------------------------------------------------------ +private: /** Set the object's unique identifier number. * * Can only be called once. |