Quote:
Originally Posted by sPlOrYgOn
I've got a question..
Code:
CBaseBot::CBaseBot():
m_iWantedTeam(-1),
m_iWantedClass(-1),
m_iSkill(1),
m_iStartAction(0),
m_flMoveSpeed(0),
m_flSideMoveSpeed(0),
m_flUpMoveSpeed(0),
m_fIsStarted(false),
m_flTimeThink(0)
{
m_biBotInput.actionflags = 0;
m_biBotInput.dir = g_vecZero;
m_biBotInput.idealangles = g_vecZero;
m_biBotInput.weapon = 0;
}
is the constructor being derived from those other functions?
I've never seen this kind of code before..
|
that's just intializing of variables. doing m_flSideMoveSpeed = 0; inside the constructor would be almost the same, but for data types which need a constructor parameter, this is the only way to do it.
therefore it's not needed for the std data types like float etc ...