com.ltu.smd116.bl.boatmap
Class BLBoatMap


public class BLBoatMap

This class draws the views of the boat.

Author:
Daniel Nilsson

Field Summary
 (package private) DBFloordbFloor
           
 (package private) DBHotSpotdbHotSpot
           

Constructor Summary
BLBoatMap()
          Create a new BLBoatMap.

Method Summary
 voiddrawFloor(Graphics g, int w, int h, FloorContainer fc)
          Draws a floor on a Graphics object.
 voiddrawSide(Graphics g)
          Draws the side view.
 FloorContainergetFloor(int floor)
          Get a floor by floor number.
 HotSpotContainergetHotSpotAt(int x, int y, int floor)
           

Field Detail

dbFloor

DBFloor dbFloor

dbHotSpot

DBHotSpot dbHotSpot
Constructor Detail

BLBoatMap

public BLBoatMap()
Create a new BLBoatMap.
Method Detail

drawFloor

public void drawFloor(Graphics g, int w, int h, FloorContainer fc)
Draws a floor on a Graphics object.
Parameters:
g - The graphics object to draw on.
fc - The data for the floor to draw.

drawSide

public void drawSide(Graphics g)
Draws the side view.
Parameters:
g - The Graphics object to draw on.

getFloor

public FloorContainer getFloor(int floor)
Get a floor by floor number.
Parameters:
floor - The floor number.
Returns: The floor.

getHotSpotAt

public HotSpotContainer getHotSpotAt(int x, int y, int floor)

Association Links

to Class com.ltu.smd116.dbp.DBFloor

to Class com.ltu.smd116.dbp.DBHotSpot