📄 cardgamecontrol.as
字号:
/**
* Project: 前台控制器
* Author : dmh2002 Blog:http://dmh2002.com/
* QQ:122054933 MSN:shangxinyu2002@msn.com
* Date : 2008.04.01
*/
package com.dmh2002.games.cardgame.cairngorm.control
{
import com.adobe.cairngorm.control.FrontController;
import com.dmh2002.games.cardgame.cairngorm.command.*;
public class CardGameControl extends FrontController
{
public function CardGameControl()
{
super();
this.initialize();
}
//
private function initialize():void
{
this.addCommand(GET_SHARED_OBJECT_EVENT,GetSharedObjectCommand);
this.addCommand(CARD_GAME_SCENE_CHANGE_EVENT,CardGameSceneChangeCommand);
this.addCommand(GAME_LOGIN_CHANGE_SEX_EVENT,GameLoginChangeSexCommand);
this.addCommand(JOIN_GAME_EVENT,JoinGameCommand);
this.addCommand(GAME_INFO_UPDATA_EVENT,GameInfoUpdataCommand);
}
//初始化游戏时读取用户本地信息事件
public static const GET_SHARED_OBJECT_EVENT:String = "getSharedObjectEvent";
//用户场景中游戏设置与游戏场景之间的切换
public static const CARD_GAME_SCENE_CHANGE_EVENT:String = "cardGameSceneChangeEvent";
//游戏设置时更改性别
public static const GAME_LOGIN_CHANGE_SEX_EVENT:String = "gameLoginChangeSexEvent";
//用户通过验证后进入游戏事件
public static const JOIN_GAME_EVENT:String = "joinGameEvent";
//更新用户积分信息事件
public static const GAME_INFO_UPDATA_EVENT:String = "gameInfoUpdataEvent";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -