2004-03-04 16:08:31 +00:00
|
|
|
// CstrikePlayer.cpp: implementation of the CCstrikePlayer class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "CstrikePlayer.h"
|
2006-04-06 14:17:39 +00:00
|
|
|
|
|
|
|
#if defined _MSC_VER
|
|
|
|
#if _MSC_VER >= 1400
|
|
|
|
// MSVC8 - disable deprecation warnings for "unsafe" CRT functions
|
|
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2004-03-04 16:08:31 +00:00
|
|
|
#include <string.h> // strcpy()
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Construction/Destruction
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
CCstrikePlayer::CCstrikePlayer()
|
|
|
|
{
|
2004-03-29 14:49:50 +00:00
|
|
|
modelled = false;
|
|
|
|
inspectModel = false;
|
2004-03-04 16:08:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CCstrikePlayer::GetModelled()
|
|
|
|
{
|
|
|
|
return modelled;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CCstrikePlayer::SetModelled(bool modelledIn)
|
|
|
|
{
|
|
|
|
if (!modelledIn)
|
|
|
|
SetInspectModel(false);
|
|
|
|
|
|
|
|
return modelled = modelledIn;
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* CCstrikePlayer::GetModel()
|
|
|
|
{
|
|
|
|
return model;
|
|
|
|
}
|
|
|
|
|
2004-03-08 09:18:06 +00:00
|
|
|
void CCstrikePlayer::SetModel(const char* modelIn)
|
2004-03-04 16:08:31 +00:00
|
|
|
{
|
2004-03-08 09:18:06 +00:00
|
|
|
strcpy(model, modelIn);
|
2004-03-04 16:08:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CCstrikePlayer::GetInspectModel()
|
|
|
|
{
|
|
|
|
return inspectModel;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CCstrikePlayer::SetInspectModel(bool inspectModelIn)
|
|
|
|
{
|
|
|
|
inspectModel = inspectModelIn;
|
2004-03-29 14:19:02 +00:00
|
|
|
}
|