Ejemplo n.º 1
0
 public BattleMissionBase(EBattleCommandType cmdType, BattleField battleField)
 {
     m_battleField    = battleField;
     m_battleFieldObj = m_battleField.BattleFieldObj;
     m_balls          = m_battleField.Balls;
     m_cmdType        = cmdType;
     m_waitBalls      = m_battleField.WaitBalls;
     m_waitBallsType  = m_battleField.WaitBallsType;
 }
Ejemplo n.º 2
0
        public static BattleCommand CreateInstance(StructBattleCommand cmd)
        {
            EBattleCommandType type = (EBattleCommandType)cmd.Type;

            if (s_battleCommandConstructorDic.ContainsKey(type))
            {
                BattleCommand command = s_battleCommandConstructorDic[type].Invoke(new object[] { cmd }) as BattleCommand;
                return(command);
            }

            return(null);
        }
Ejemplo n.º 3
0
        public static BattleMissionBase CreateBattleMission(EBattleCommandType type, BattleField battleField)
        {
            BattleMissionBase bm = null;

            switch (type)
            {
            case EBattleCommandType.CmdFireBallResponse:
                bm = new BMAddBall(type, battleField);
                break;

            case EBattleCommandType.CmdEraseBall:
                bm = new BMEraseBall(type, battleField);
                break;

            case EBattleCommandType.CmdFallBall:
                bm = new BMFallBall(type, battleField);
                break;

            case EBattleCommandType.CmdExchangeBall:
                bm = new BMExChangeBall(type, battleField);
                break;

            case EBattleCommandType.CmdBallQueue:
                bm = new BMBallQueue(type, battleField);
                break;

            case EBattleCommandType.CmdSceneTransform:
                bm = new BMFceneTransform(type, battleField);
                break;

            default:
                bm = null;
                break;
            }

            return(bm);
        }
Ejemplo n.º 4
0
 public BMFallBall(EBattleCommandType type, BattleField battleField) : base(type, battleField)
 {
     m_fallTime = ConfigHelper.GetSysConfig(ESysConfig.BubbleFallTime) * 0.001f;
 }
Ejemplo n.º 5
0
 public BMEraseBall(EBattleCommandType type, BattleField battleField) : base(type, battleField)
 {
 }
Ejemplo n.º 6
0
 protected BattleCommand(EBattleCommandType type)
 {
     _type = type;
 }
Ejemplo n.º 7
0
 public BMFceneTransform(EBattleCommandType type, BattleField battleField) : base(type, battleField)
 {
 }
Ejemplo n.º 8
0
 public BMBallQueue(EBattleCommandType type, BattleField battleField) : base(type, battleField)
 {
 }