amxmodx/dlls/cstrike/CstrikePlayer.cpp

50 lines
941 B
C++
Raw Normal View History

// CstrikePlayer.cpp: implementation of the CCstrikePlayer class.
//
//////////////////////////////////////////////////////////////////////
#include "CstrikePlayer.h"
#include <string.h> // strcpy()
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCstrikePlayer::CCstrikePlayer()
{
2004-03-29 18:49:50 +04:00
modelled = false;
inspectModel = false;
}
bool CCstrikePlayer::GetModelled()
{
return modelled;
}
bool CCstrikePlayer::SetModelled(bool modelledIn)
{
if (!modelledIn)
SetInspectModel(false);
return modelled = modelledIn;
}
const char* CCstrikePlayer::GetModel()
{
return model;
}
void CCstrikePlayer::SetModel(const char* modelIn)
{
strcpy(model, modelIn);
}
bool CCstrikePlayer::GetInspectModel()
{
return inspectModel;
}
void CCstrikePlayer::SetInspectModel(bool inspectModelIn)
{
inspectModel = inspectModelIn;
}