Minor fix to how Common/Client Proxy handles init
This commit is contained in:
parent
6a8807d70a
commit
7532f2c506
2 changed files with 10 additions and 6 deletions
|
@ -18,9 +18,8 @@ public class ClientProxy extends CommonProxy
|
|||
private Battle localBattle = null;
|
||||
|
||||
@Override
|
||||
public void initialize()
|
||||
protected void initializeClient()
|
||||
{
|
||||
super.initialize();
|
||||
battleGui = new BattleGui();
|
||||
battleMusic = null; // will be initialized in postInit()
|
||||
battleMusicCount = 0;
|
||||
|
@ -84,9 +83,8 @@ public class ClientProxy extends CommonProxy
|
|||
}
|
||||
|
||||
@Override
|
||||
public void postInit()
|
||||
protected void postInitClient()
|
||||
{
|
||||
super.postInit();
|
||||
battleMusic = new BattleMusic(getLogger());
|
||||
}
|
||||
|
||||
|
|
|
@ -17,11 +17,14 @@ public class CommonProxy
|
|||
private Config config = null;
|
||||
private Logger logger = null;
|
||||
|
||||
public void initialize()
|
||||
public final void initialize()
|
||||
{
|
||||
attackerViaBow = new HashSet<AttackerViaBow>();
|
||||
initializeClient();
|
||||
}
|
||||
|
||||
protected void initializeClient() {}
|
||||
|
||||
public final boolean initializeBattleManager()
|
||||
{
|
||||
if(battleManager == null)
|
||||
|
@ -57,11 +60,14 @@ public class CommonProxy
|
|||
|
||||
public void battleEnded() {}
|
||||
|
||||
public void postInit()
|
||||
public final void postInit()
|
||||
{
|
||||
config = new Config(logger);
|
||||
postInitClient();
|
||||
}
|
||||
|
||||
protected void postInitClient() {}
|
||||
|
||||
public final void setLogger(Logger logger)
|
||||
{
|
||||
this.logger = logger;
|
||||
|
|
Loading…
Reference in a new issue