示例#1
0
 public PlayerMahjong(ScriptMahjongHandIn script, PLAYER_POSITION position)
 {
     mScript          = script;
     mPosition        = position;
     mHandInMahjong   = new HandInMahjong(mScript, mPosition);
     mShowMahjong     = new ShowMahjong(mScript, CommonDefine.mDropMahjongPreName[(int)mPosition]);
     mPengGangMahjong = new PengGangMahjong(mScript, CommonDefine.mDropMahjongPreName[(int)mPosition]);
 }
示例#2
0
 public PlayerMahjong(ScriptMahjongHandIn script, PLAYER_POSITION position)
 {
     mScript   = script;
     mPosition = position;
     if (mPosition == PLAYER_POSITION.PP_MYSELF)
     {
         mHandInMahjong = new HandInMahjongMyself(mScript, mPosition);
     }
     else
     {
         mHandInMahjong = new HandInMahjongOther(mScript, mPosition);
     }
     mShowMahjong     = new ShowHuMahjong(mScript, GameDefine.mDropMahjongPreName[(int)mPosition]);
     mPengGangMahjong = new PengGangMahjong(mScript, GameDefine.mDropMahjongPreName[(int)mPosition]);
     mHuaMahjong      = new HuaMahjong(mScript, GameDefine.mDropMahjongPreName[(int)mPosition]);
 }