ch.sahits.game.graphic.display
Class GameView

java.lang.Object
  extended by ch.sahits.game.rendering.BaseView
      extended by ch.sahits.game.graphic.display.GameView
All Implemented Interfaces:
ch.sahits.game.event.IEventListener, ch.sahits.game.openpatrician.client.event.IMainGameView, ch.sahits.game.rendering.Renderable

public class GameView
extends ch.sahits.game.rendering.BaseView
implements ch.sahits.game.openpatrician.client.event.IMainGameView

This View represents the main game view

Author:
andi

Field Summary
private  ch.sahits.game.openpatrician.client.IClient client
           
private  boolean enabled
           
private  ch.sahits.game.graphic.image.FontLoader fontLoader
           
 
Fields inherited from class ch.sahits.game.rendering.BaseView
rect
 
Constructor Summary
GameView(Rectangle bounds, OpenPatricianFrame parent)
           
 
Method Summary
private  void createNewView()
           
private  void createStartupView()
           
 void gameRender(Graphics gScr)
           
 void gameUpdate(ch.sahits.game.event.Event e, Object notice)
           
 ch.sahits.game.rendering.RenderablePart getActiveMainView()
          Retrieve the main game view that is currently active
 boolean isEnabled()
           
 void setClient(ch.sahits.game.openpatrician.client.IClient client)
           
 void setEnabled(boolean flag)
           
 
Methods inherited from class ch.sahits.game.rendering.BaseView
addPart, getBounds, getHeight, getParent, getWidth, iterator, removePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

private boolean enabled

fontLoader

private final ch.sahits.game.graphic.image.FontLoader fontLoader

client

private ch.sahits.game.openpatrician.client.IClient client
Constructor Detail

GameView

public GameView(Rectangle bounds,
                OpenPatricianFrame parent)
Parameters:
width -
height -
Method Detail

createStartupView

private void createStartupView()

createNewView

private void createNewView()

gameRender

public void gameRender(Graphics gScr)
Specified by:
gameRender in interface ch.sahits.game.rendering.Renderable
Overrides:
gameRender in class ch.sahits.game.rendering.BaseView

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ch.sahits.game.rendering.Renderable
Overrides:
isEnabled in class ch.sahits.game.rendering.BaseView

setEnabled

public void setEnabled(boolean flag)
Specified by:
setEnabled in interface ch.sahits.game.rendering.Renderable
Overrides:
setEnabled in class ch.sahits.game.rendering.BaseView

gameUpdate

public final void gameUpdate(ch.sahits.game.event.Event e,
                             Object notice)
Specified by:
gameUpdate in interface ch.sahits.game.event.IEventListener
Specified by:
gameUpdate in interface ch.sahits.game.rendering.Renderable
Specified by:
gameUpdate in class ch.sahits.game.rendering.BaseView

getActiveMainView

public final ch.sahits.game.rendering.RenderablePart getActiveMainView()
Retrieve the main game view that is currently active

Specified by:
getActiveMainView in class ch.sahits.game.rendering.BaseView
Returns:

setClient

public void setClient(ch.sahits.game.openpatrician.client.IClient client)


Copyright © 2011 Sahits GmbH. All Rights Reserved.