Game Development Community

RTSUnit Class

by William Todd Scott · in RTS Starter Kit · 05/25/2006 (8:16 pm) · 0 replies

Hi,

I am working through the RTS class and I notice that while RTSUnit inherits from player, the pack() and unpack() methods call the GameBase::pack() and GameBase::unpack(), as opposed to Parent::pack() and Parent::unpack().

So, if the networking functionality of the ShapeBase and Player classes are effectively being ignored, why doesn't RTSUnit just inherit from GameBase?

I'm hoping to understand the thought process a bit better...

Thanks
Todd