I understand the basics of the constructor & destructor, but when I was looking over some source code, I have seen a constructor used in a way I've never seen before, so I was hoping someone could either point me in the right direction so I can read up on this specific way of using it.
Here is the constructor that has puzzled me for awhile.
IEntity(const typeEntityID theID, App* theApp) :
mApp(theApp),
mID(theID),
mInit(false),
mPaused(false),
mCleanup(false),
mElapsedTime(0.0f),
mPausedTime(0.0f)
{
}
What is the purpose for the ":" in this constructor? Thanks for the help in advance.

New Topic/Question
Reply




MultiQuote




|