New team object - which class should I derive from?
by Mike Stoddart · in Torque Game Engine · 02/28/2003 (3:54 pm) · 0 replies
I was thinking of creating a teamObject class in C++. I would also create three team datablocks; Observers, Red Team and Blue Team. Then I would create three team objects, each one with initialised with its associated datablock.
I thought of doing this so that I could assign each player a team, accessible from both C++ and script.
Which class should I derive teamObject from? I thought of using GameBase but I realised that I don't know the difference between the various sub-classes of SimObject. Would this be an appropriate class to derive from?
Thanks
I thought of doing this so that I could assign each player a team, accessible from both C++ and script.
Which class should I derive teamObject from? I thought of using GameBase but I realised that I don't know the difference between the various sub-classes of SimObject. Would this be an appropriate class to derive from?
Thanks