How about you just make a global function in some file somewhere:
void CheckRoundEnd ()
{
// blah
}
and then you can extern it wherever you need it, or just plop the prototype in
a header file somewhere.
If it needs to access the private vars of a class, then just have the class
declare it as a friend:
class Fubar
{
friend void CheckRoundEnd ();
private:
// CheckRoundEnd can access these variables
int a, b, c;
float d, e, f;
// and so on..
};
--- "Yacketta, Ronald" <[EMAIL PROTECTED]> wrote:
> Folks,
>
> I have been searching for the right place to plop some code to
> checkroundend.
> I would like to keep it out of a specific gamerule, seeing that all will
> use it
> I would also like to be able to cal/use this function in other "NON"
> gamerule
> Related files like scientists.cpp etc.. To check for round end under
> certain conditions
>
> Any thoughts?
>
> Regards,
> Ron
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders