Exemplo n.º 1
0
 public BattleController(IPokemon pokemon, IPokemon enemyPokemon, IBattleView battleView, IBattleLogController battleLogController)
 {
     PlayerPokemon        = pokemon;
     EnemyPokemon         = enemyPokemon;
     _battleView          = battleView;
     _battleLogController = battleLogController;
 }
Exemplo n.º 2
0
 public override void OnDestroy()
 {
     go    = null;
     trans = null;
     if (null != view)
     {
         view.Dispose();
         view = null;
     }
 }
 public BattlePresenter(
     IBattleView view,
     PlayerData playerData,
     Dictionary <int, EnemyData> enemiesData,
     GameData gameData)
 {
     _view        = view;
     _playerData  = playerData;
     _enemiesData = enemiesData;
     _gameData    = gameData;
     _gameRecord  = GameUtility.Instance.GetCurGameRecord();
 }
Exemplo n.º 4
0
		public virtual void show(IBattleView viewObj)
		{
			viewObj.showBattleErrorRecord(this);
		}
Exemplo n.º 5
0
 public static IBattle CreateBattle(IPokemon playerPokemon, IPokemon enemyPokemon, IBattleView battleView, IBattleLogController battleLogController)
 {
     return(new BattleController(playerPokemon, enemyPokemon, battleView, battleLogController));
 }
Exemplo n.º 6
0
 public void show(IBattleView viewObj)
 {
     viewObj.showBattleDebugRecord(this);
 }
Exemplo n.º 7
0
 public BattleLogController(IBattleView battleView)
 {
     _battleView = battleView;
 }