当前位置: 首页>>代码示例>>C++>>正文


C++ CEventClient类代码示例

本文整理汇总了C++中CEventClient的典型用法代码示例。如果您正苦于以下问题:C++ CEventClient类的具体用法?C++ CEventClient怎么用?C++ CEventClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CEventClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PlayerChanged

void CEventHandler::PlayerChanged(int playerID)
{
	const int count = listPlayerChanged.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listPlayerChanged[i];
		ec->PlayerChanged(playerID);
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例2: ViewResize

void CEventHandler::ViewResize()
{
	const int count = listViewResize.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listViewResize[i];
		ec->ViewResize();
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例3: GamePreload

void CEventHandler::GamePreload()
{
	const int count = listGamePreload.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGamePreload[i];
		ec->GamePreload();
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例4: GameProgress

void CEventHandler::GameProgress(int gameFrame)
{
	const int count = listGameProgress.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGameProgress[i];
		ec->GameProgress(gameFrame);
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例5: Update

void CEventHandler::Update()
{
	const int count = listUpdate.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listUpdate[i];
		ec->Update();
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例6: GamePaused

void CEventHandler::GamePaused(int playerID, bool paused)
{
	const int count = listGamePaused.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGamePaused[i];
		ec->GamePaused(playerID, paused);
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例7: PlayerRemoved

void CEventHandler::PlayerRemoved(int playerID, int reason)
{
	const int count = listPlayerRemoved.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listPlayerRemoved[i];
		ec->PlayerRemoved(playerID, reason);
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例8: GameOver

void CEventHandler::GameOver(const std::vector<unsigned char>& winningAllyTeams)
{
	const int count = listGameOver.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGameOver[i];
		ec->GameOver(winningAllyTeams);
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例9: Save

void CEventHandler::Save(zipFile archive)
{
	const int count = listSave.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listSave[i];
		ec->Save(archive);
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例10: TeamChanged

void CEventHandler::TeamChanged(int teamID)
{
	const int count = listTeamChanged.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listTeamChanged[i];
		ec->TeamChanged(teamID);
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例11: GameOver

void CEventHandler::GameOver()
{
	const int count = listGameOver.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGameOver[i];
		ec->GameOver();
	}
}
开发者ID:achoum,项目名称:spring,代码行数:8,代码来源:EventHandler.cpp

示例12: AddConsoleLine

bool CEventHandler::AddConsoleLine(const string& msg, CLogSubsystem& subsystem)
{
	const int count = listAddConsoleLine.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listAddConsoleLine[i];
		ec->AddConsoleLine(msg, subsystem);
	}
	return true;
}
开发者ID:achoum,项目名称:spring,代码行数:9,代码来源:EventHandler.cpp

示例13: EVENTHANDLER_CHECK

void CEventHandler::ViewResize()
{
	EVENTHANDLER_CHECK(ViewResize);

	for (int i = 0; i < count; i++) {
		CEventClient* ec = listViewResize[i];
		ec->ViewResize();
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:9,代码来源:EventHandler.cpp

示例14: GroupChanged

bool CEventHandler::GroupChanged(int groupID)
{
	const int count = listGroupChanged.size();
	for (int i = 0; i < count; i++) {
		CEventClient* ec = listGroupChanged[i];
		ec->GroupChanged(groupID);
	}
	return false;
}
开发者ID:achoum,项目名称:spring,代码行数:9,代码来源:EventHandler.cpp

示例15: GML_DRAW_CALLIN_SELECTOR

void CEventHandler::Update()
{
	GML_DRAW_CALLIN_SELECTOR();

	EVENTHANDLER_CHECK(Update);

	for (int i = 0; i < count; i++) {
		CEventClient* ec = listUpdate[i];
		ec->Update();
	}
}
开发者ID:lordelven,项目名称:spring,代码行数:11,代码来源:EventHandler.cpp


注:本文中的CEventClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。