示例#1
0
文件: base.cpp 项目: ihuangx/kbengine
//-------------------------------------------------------------------------------------
Base::Base(ENTITY_ID id, const ScriptDefModule* pScriptModule, 
		   PyTypeObject* pyType, bool isInitialised):
ScriptObject(pyType, isInitialised),
ENTITY_CONSTRUCTION(Base),
clientMailbox_(NULL),
cellMailbox_(NULL),
cellDataDict_(NULL),
hasDB_(false),
DBID_(0),
isGetingCellData_(false),
isArchiveing_(false),
shouldAutoArchive_(1),
shouldAutoBackup_(1),
creatingCell_(false),
createdSpace_(false),
inRestore_(false),
pBufferedSendToCellappMessages_(NULL),
pBufferedSendToClientMessages_(NULL),
isDirty_(true),
dbInterfaceIndex_(0)
{
	script::PyGC::incTracing("Base");
	ENTITY_INIT_PROPERTYS(Base);

	// 创建并初始化cellData
	createCellData();
}
示例#2
0
//-------------------------------------------------------------------------------------
Entity::Entity(ENTITY_ID id, const ScriptDefModule* scriptModule):
ScriptObject(getScriptType(), true),
ENTITY_CONSTRUCTION(Entity),
cellMailbox_(NULL),
baseMailbox_(NULL),
pChannel_(NULL)
{
	ENTITY_INIT_PROPERTYS(Entity);
}
示例#3
0
//-------------------------------------------------------------------------------------
Entity::Entity(ENTITY_ID id, const ScriptDefModule* scriptModule):
ScriptObject(getScriptType(), true),
ENTITY_CONSTRUCTION(Entity),
clientMailbox_(NULL),
baseMailbox_(NULL),
isReal_(true),
topSpeed_(-0.1f),
topSpeedY_(-0.1f),
isWitnessed_(false),
pWitness_(NULL),
allClients_(new AllClients(scriptModule, id, true)),
otherClients_(new AllClients(scriptModule, id, false))
{
	ENTITY_INIT_PROPERTYS(Entity);
}
示例#4
0
//-------------------------------------------------------------------------------------
Base::Base(ENTITY_ID id, const ScriptDefModule* scriptModule, PyTypeObject* pyType, bool isInitialised):
ScriptObject(pyType, isInitialised),
ENTITY_CONSTRUCTION(Base),
clientMailbox_(NULL),
cellMailbox_(NULL),
cellDataDict_(NULL),
hasDB_(false),
isGetingCellData_(false),
isArchiveing_(false),
creatingCell_(false),
createdSpace_(false)
{
	ENTITY_INIT_PROPERTYS(Base);

	// 创建并初始化cellData
	createCellData();
}