View Single Post
Re: Whistler's new bot framework
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Whistler's new bot framework - 03-08-2004

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 ...



Last edited by @$3.1415rin; 08-12-2004 at 15:57..
  
Reply With Quote