Class games.Battle.client.ClientApplet.ClientLookTraditional
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class games.Battle.client.ClientApplet.ClientLookTraditional

java.lang.Object
   |
   +----games.Battle.client.ClientApplet.ClientLook
           |
           +----games.Battle.client.ClientApplet.ClientLookTraditional

public class ClientLookTraditional
extends ClientLook
ClientLookTraditional implements a look mimicing the traditional xbattle look. Hills and valleys are represented by varying contour shades. ClientLookTraditional is the first client we implemented to begin testing and implenting the game.

Constructor Index

 o ClientLookTraditional(ClientBoardComponent)
Construct a ClientLookTraditional instance with the given ClientBoardComponent.

Method Index

 o update(ClientBoard)
Update the display for the client board for every turn.
 o updateTerrain(ClientBoard)
Update terrain does nothing for this look.

Constructors

 o ClientLookTraditional
  public ClientLookTraditional(ClientBoardComponent c)
Construct a ClientLookTraditional instance with the given ClientBoardComponent.
Parameters:
c - the component to draw in

Methods

 o updateTerrain
  public void updateTerrain(ClientBoard b)
Update terrain does nothing for this look. All drawing is done in update().
Overrides:
updateTerrain in class ClientLook
 o update
  public void update(ClientBoard b)
Update the display for the client board for every turn. For this look, this method does all the drawing for the client, including the terrain. It only draws visible squares.
Overrides:
update in class ClientLook

All Packages  Class Hierarchy  This Package  Previous  Next  Index