Back to project page ubisoldiers.
The source code is released under:
MIT License
If you think the Android project ubisoldiers listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.gobbisanches.ubisoldiers.mechanics; //from ww w . j a v a 2s. c o m /** * Created by Sanches on 29/06/2014. */ // Design Pattern: Singleton public final class PolicyManager { private final static PolicyManager INSTANCE = new PolicyManager(); private GameRules gameRules = new DefaultGameRules(); private PolicyManager() { } private static final PolicyManager getInstance() { return INSTANCE; } public static GameRules getRules() { return getInstance().gameRules; } public static void setGameRules(GameRules gameRules) { getInstance().gameRules = gameRules; } }