Beispiel #1
0
 public void onError(string msg)
 {
     this.dispatchEvent(GameEvent.Create(GAME_EVENT_DEFAULT.CONN_ERR, this, null));
 }
 public void onNewSkill()
 {
     dispatchEvent(GameEvent.Create(EVENT_NEW_SKILL, this, null));
 }
 public void onStartMove()
 {
     dispatchEvent(GameEvent.Create(EVENT_START_MOVE, this, null));
 }
 public void onHeroSkillPlayerOver()
 {
     dispatchEvent(GameEvent.Create(EVENT_HERO_3D_SKILL_OVER, this, null));
 }
 public void onFbWipeoutOver()
 {
     dispatchEvent(GameEvent.Create(EVENT_FB_WIPEOUT_OVER, this, null));
 }
 public void onWinOpen(string winid)
 {
     dispatchEvent(GameEvent.Create(EVENT_WIN_OPEN, this, winid));
 }
 public void onLotteryDrawed()
 {
     dispatchEvent(GameEvent.Create(EVENT_LOTTERY_DRAW, this, null));
 }
Beispiel #8
0
 public void onLotteryDrawed()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_LOTTERY_DRAW, this, null, false));
 }
Beispiel #9
0
 public void onMapChanged()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_MAP_CHANGED, this, null, false));
 }
Beispiel #10
0
 public void onWinOpen(string winid)
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_WIN_OPEN, this, winid, false));
 }
Beispiel #11
0
 public void onWinClosed(string winid)
 {
     UiEventCenter.lastClosedWinID = winid;
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_WIN_CLOSE, this, winid, false));
 }
Beispiel #12
0
 public void onConnectFailed()
 {
     this.dispatchEvent(GameEvent.Create(GAME_EVENT_DEFAULT.CONN_FAILE, this, null));
 }
Beispiel #13
0
 public void onConnectionClose()
 {
     this.dispatchEvent(GameEvent.Create(GAME_EVENT_DEFAULT.CONN_CLOSE, this, null));
 }
Beispiel #14
0
 public void onServerVersionRecv()
 {
     this.dispatchEvent(GameEvent.Create(GAME_EVENT_DEFAULT.CONN_VER, this, null));
 }
Beispiel #15
0
 protected void eventAct(uint uiEventId, Variant data)
 {        //
     dispatchEvent(
         GameEvent.Create(uiEventId, this, data)
         );
 }
Beispiel #16
0
 public void onHeroSkillPlayerOver()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_HERO_3D_SKILL_OVER, this, null, false));
 }
 virtual protected void onPlaySound(GameEvent e)
 {
 }
Beispiel #18
0
 public void onFbWipeoutOver()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_FB_WIPEOUT_OVER, this, null, false));
 }
 public void onWinClosed(string winid)
 {
     lastClosedWinID = winid;
     dispatchEvent(GameEvent.Create(EVENT_WIN_CLOSE, this, winid));
 }
Beispiel #20
0
 public void onAchiInited()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_ACHIEVE_INITED, this, null, false));
 }
 public void onMapChanged()
 {
     dispatchEvent(GameEvent.Create(EVENT_MAP_CHANGED, this, null));
 }
Beispiel #22
0
 public void onNewSkill()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_NEW_SKILL, this, null, false));
 }
 public void onFbInited()
 {
     dispatchEvent(GameEvent.Create(EVENT_FB_INITED, this, null));
 }
Beispiel #24
0
 public void onSkillDrawEnd()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_SKILL_DRAWEND, this, null, false));
 }
 public void onAchiInited()
 {
     dispatchEvent(GameEvent.Create(EVENT_ACHIEVE_INITED, this, null));
 }
Beispiel #26
0
 public void onStartMove()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_START_MOVE, this, null, false));
 }
 public void onSkillDrawEnd()
 {
     dispatchEvent(GameEvent.Create(EVENT_SKILL_DRAWEND, this, null));
 }
Beispiel #28
0
 public void onAddPoint()
 {
     base.dispatchEvent(GameEvent.Create(UiEventCenter.EVENT_ADD_POINT, this, null, false));
 }
 public void onAddPoint()
 {
     dispatchEvent(GameEvent.Create(EVENT_ADD_POINT, this, null));
 }
Beispiel #30
0
        //public void onRPC(uint cmdID, string cmdName, Variant par)
        //{
        //	//trace( "onRpc" + cmdID );
        //	this.dispatchEvent( GameEvent.Createimmedi( cmdID, this, par ) );
        //}
        ///// 58 -> 50
        //public void onTPKG(uint cmdID, Variant par)
        //{
        //	//trace( "ontpkg" + cmdID );

        //	this.dispatchEvent(
        //		GameEvent.Create(
        //			(GAME_EVENT_DEFAULT.TYPE_PKG_OFFSET + cmdID ),
        //			this,
        //			par
        //		 )
        //	);
        //}
        public void onLogin(Variant data)
        {
            this.dispatchEvent(
                GameEvent.Create(GAME_EVENT_DEFAULT.ON_LOGIN, this, data)
                );
        }