📄 gamelayoutersinkobject.h
字号:
// ***************************************************************
// GameLayouterSinkObject version: 1.0
// -------------------------------------------------------------
// File Name: GameLayouterSinkObject.h
// Created: 2007/07/19
// Modified: 2007/07/19 16:20
// Author: William.Liang
// Msn: lwq49@msn.com
// Email: lwq49@21cn.com, lwq49@msn.com
// Description:
//
// Purpose:
// -------------------------------------------------------------
// license:
//
// The contents of this file are subject to the Mozilla Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy
// of the License at http://www.mozilla.org/MPL/ Software dis-
// tributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or im-
// plied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Initial Developer of the Original Code is William.Liang .
// Copyright (C) 2007 - All Rights Reserved.
// ***************************************************************
#ifndef GAME_LAYOUTER_OBJECT_HEAD_FILE
#define GAME_LAYOUTER_OBJECT_HEAD_FILE
#pragma once
#include "gameframe.h"
#include "xmlparser.h"
//***************************************************************
// 对象布局的创建
//***************************************************************
class GAME_FRAME_CLASS CGameLayouterSinkObject :
public IGameLayouterSink
{
protected:
LPFRAMEMANAGERHANDLE m_lpFMHandles; //管理句柄集合
IGameLayouter* m_pIGameLayouter; //父指针
IGameSection* m_pCurrentSection; //当前环节
CGameView* m_pCurrentView; //当前视图
CGameScene* m_pCurrentScene; //当前场景
CGameLayer* m_pCurrentLayer; //当前层
IGameObject* m_pCurrentObject; //当前对象
public:
//构造函数
CGameLayouterSinkObject(void);
//析构函数
virtual ~CGameLayouterSinkObject(void);
public:
//回调处理方法
virtual void __cdecl Processer(_CString szNodeName, _CString szParentName, LPVOID lpParam);
//设置上级接口
virtual void __cdecl SetGameLayouter(IGameLayouter* pIGameLayouter, LPFRAMEMANAGERHANDLE pFMHandles);
//模板方法
public:
//是否有效
virtual bool __cdecl IsValid() { return AfxIsValidAddress(this,sizeof(CGameLayouterSinkObject))?true:false;};
//释放对象
virtual bool __cdecl Release() { if(IsValid()) delete this; return true; };
//接口查询
virtual void * __cdecl QueryInterface(const IID & Guid, DWORD dwQueryVer);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -