Methapolis
0.27
|
Public Member Functions | |
CheatWindow (Micropolis engine, Map< MicropolisTool, JToggleButton > toolBtns) | |
boolean | dispatchKeyEvent (KeyEvent e) |
Private Attributes | |
Micropolis | engine |
KeyboardFocusManager | manager |
JTextField | textField |
Map< MicropolisTool, JToggleButton > | toolBtns |
Static Private Attributes | |
static final String | MORE_MONEY_CHEAT = "gimme" |
static final int | AMOUNT_GIVEN = 5000 |
static final String | MORE_RESEARCH_CHEAT = "research" |
static final int | AMOUNT_RESEARCH = 1000 |
static String | lastInput |
Definition at line 18 of file CheatWindow.java.
micropolisj.gui.CheatWindow.CheatWindow | ( | Micropolis | engine, |
Map< MicropolisTool, JToggleButton > | toolBtns | ||
) |
Definition at line 37 of file CheatWindow.java.
References micropolisj.gui.CheatWindow.engine, micropolisj.gui.CheatWindow.lastInput, micropolisj.gui.CheatWindow.manager, micropolisj.gui.CheatWindow.textField, and micropolisj.gui.CheatWindow.toolBtns.
boolean micropolisj.gui.CheatWindow.dispatchKeyEvent | ( | KeyEvent | e | ) |
Definition at line 54 of file CheatWindow.java.
References micropolisj.gui.CheatWindow.AMOUNT_GIVEN, micropolisj.gui.CheatWindow.AMOUNT_RESEARCH, micropolisj.engine.PlayerInfo.budget, micropolisj.research.ResearchState.createFromResearchData(), micropolisj.gui.CheatWindow.engine, micropolisj.engine.Micropolis.fireFundsChanged(), micropolisj.engine.Micropolis.getPlayerInfo(), micropolisj.gui.CheatWindow.lastInput, micropolisj.gui.CheatWindow.manager, micropolisj.gui.CheatWindow.MORE_MONEY_CHEAT, micropolisj.gui.CheatWindow.MORE_RESEARCH_CHEAT, micropolisj.engine.PlayerInfo.researchData, micropolisj.research.ResearchData.researchPoints, micropolisj.engine.PlayerInfo.researchState, micropolisj.gui.CheatWindow.textField, micropolisj.gui.CheatWindow.toolBtns, and micropolisj.engine.CityBudget.totalFunds.
|
staticprivate |
Definition at line 21 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
staticprivate |
Definition at line 24 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
private |
Definition at line 29 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.CheatWindow(), and micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
staticprivate |
Definition at line 27 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.CheatWindow(), and micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
private |
Definition at line 31 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.CheatWindow(), and micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
staticprivate |
Definition at line 20 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
staticprivate |
Definition at line 23 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
private |
Definition at line 33 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.CheatWindow(), and micropolisj.gui.CheatWindow.dispatchKeyEvent().
|
private |
Definition at line 35 of file CheatWindow.java.
Referenced by micropolisj.gui.CheatWindow.CheatWindow(), and micropolisj.gui.CheatWindow.dispatchKeyEvent().