本文整理汇总了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);
}
}
示例2: ViewResize
void CEventHandler::ViewResize()
{
const int count = listViewResize.size();
for (int i = 0; i < count; i++) {
CEventClient* ec = listViewResize[i];
ec->ViewResize();
}
}
示例3: GamePreload
void CEventHandler::GamePreload()
{
const int count = listGamePreload.size();
for (int i = 0; i < count; i++) {
CEventClient* ec = listGamePreload[i];
ec->GamePreload();
}
}
示例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);
}
}
示例5: Update
void CEventHandler::Update()
{
const int count = listUpdate.size();
for (int i = 0; i < count; i++) {
CEventClient* ec = listUpdate[i];
ec->Update();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例11: GameOver
void CEventHandler::GameOver()
{
const int count = listGameOver.size();
for (int i = 0; i < count; i++) {
CEventClient* ec = listGameOver[i];
ec->GameOver();
}
}
示例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;
}
示例13: EVENTHANDLER_CHECK
void CEventHandler::ViewResize()
{
EVENTHANDLER_CHECK(ViewResize);
for (int i = 0; i < count; i++) {
CEventClient* ec = listViewResize[i];
ec->ViewResize();
}
}
示例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;
}
示例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();
}
}