|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.rendering.AbstractRenderPart
ch.sahits.game.graphic.display.MainGameView
public class MainGameView
This is the main in game view. The main part of this class is to delegate further down and to draw the frame borders over the delegated stuff.
| Field Summary | |
|---|---|
private BufferedImage |
background
Cached background image |
private static int |
BORDER_SPACING
Width/height of the border |
private GameStatus |
gameStatus
View status holding money and time |
private static int |
HORIZONTAL_DECO_HEIGHT
Height of the horizontal fries |
private static int |
LEFT_PANEL_WIDTH
Width og the left panels inclusive borders |
private static int |
LEFT_STATUS_PANEL_WIDTH
Width of the left panels (without borders) |
private ch.sahits.game.graphic.image.ImagesLoader |
loader
Image loader to retrieve the images |
private MainMenu |
mainMenu
View holding the main menu |
private MainView |
mainView
Main view of the map or the city |
private static int |
MAP_OVERVIEW_HEIGHT
Height of the map overview |
private MapView |
mapOverview
View holding the sea or city overview map |
private static int |
MENU_HEIGHT
Height of the menu bar |
static int |
MINMIMAL_DISPLAY_HEIGHT
The minimal height the display must have |
private static int |
NOTICE_HEIGHT
Height of the notice view |
private NoticeView |
noticeView
View holding notices and state information |
private SubMenu |
subMenu
View holding the sub menu (ship or city) menu |
private static int |
TOP_STATUS_HEIGHT
Height of the top status bar |
private ViewStatus |
viewStatus
Status view of the fleet or city |
| Fields inherited from class ch.sahits.game.rendering.AbstractRenderPart |
|---|
rect |
| Constructor Summary | |
|---|---|
MainGameView(Rectangle rect,
ch.sahits.game.openpatrician.client.IClient cl)
|
|
| Method Summary | |
|---|---|
private BufferedImage |
createBackground()
Create the background image |
void |
gameRender(Graphics gScr)
|
void |
gameUpdate(ch.sahits.game.event.Event e,
Object notice)
|
| Methods inherited from class ch.sahits.game.rendering.AbstractRenderPart |
|---|
getBounds, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MAP_OVERVIEW_HEIGHT
private static final int LEFT_STATUS_PANEL_WIDTH
private static final int TOP_STATUS_HEIGHT
private static final int BORDER_SPACING
private static final int HORIZONTAL_DECO_HEIGHT
private static final int MENU_HEIGHT
private static final int NOTICE_HEIGHT
private static final int LEFT_PANEL_WIDTH
public static final int MINMIMAL_DISPLAY_HEIGHT
private final MapView mapOverview
private final MainMenu mainMenu
private final SubMenu subMenu
private final NoticeView noticeView
private final GameStatus gameStatus
private final ViewStatus viewStatus
private final MainView mainView
private final ch.sahits.game.graphic.image.ImagesLoader loader
private final BufferedImage background
| Constructor Detail |
|---|
public MainGameView(Rectangle rect,
ch.sahits.game.openpatrician.client.IClient cl)
| Method Detail |
|---|
public void gameRender(Graphics gScr)
private BufferedImage createBackground()
public void gameUpdate(ch.sahits.game.event.Event e,
Object notice)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||