|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.graphic.display.gameplay.internal.AbstractSceneHandler
ch.sahits.game.graphic.display.gameplay.internal.PortSceneHandler
public class PortSceneHandler
This scene handler handles the port scene related events
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
logger
|
private static String[] |
polyNames
|
| Fields inherited from class ch.sahits.game.graphic.display.gameplay.internal.AbstractSceneHandler |
|---|
imageUtils, polygons, scaleMap, SCENE_IMAGE_NAME, xmlLoader |
| Constructor Summary | |
|---|---|
PortSceneHandler(Rectangle parentBounds,
IDataImageLoader xmlLoader,
DisplayImageDIResolver resolver)
|
|
| Method Summary | |
|---|---|
void |
displayConsumtionProductionDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Display the consumption and production dialog |
void |
displayTradingOfficeBalanceDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Display the balance dialog for the trading office |
void |
displayTradingOfficePersonaldialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Display ther personal dialog for the trading office |
void |
displayWareStorageDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Display the ware storage dialog |
void |
displayWeaponStorageDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Display the weapon storage dialog |
BufferedImage |
init(DisplayImageDIResolver resolver)
Initialize the images and polygons of the scene |
void |
updateScene(Event e,
Object eventNotice,
CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
Update the scene based on an event. |
| Methods inherited from class ch.sahits.game.graphic.display.gameplay.internal.AbstractSceneHandler |
|---|
findPolygon, getBounds, getImage, initPolygons |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger logger
private static final String[] polyNames
| Constructor Detail |
|---|
public PortSceneHandler(Rectangle parentBounds,
IDataImageLoader xmlLoader,
DisplayImageDIResolver resolver)
| Method Detail |
|---|
public BufferedImage init(DisplayImageDIResolver resolver)
ISceneHandler
resolver - to be used to load the images
public void updateScene(Event e,
Object eventNotice,
CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
ISceneHandler
public void displayTradingOfficeBalanceDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
city - dialogUpdater -
public void displayTradingOfficePersonaldialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
city - dialogUpdater -
public void displayConsumtionProductionDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
city - dialogUpdater -
public void displayWeaponStorageDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
city - dialogUpdater -
public void displayWareStorageDialog(CityPlayerProxy city,
IUpdatableDialog dialogUpdater)
city - dialogUpdater -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||