com.ltu.smd116.bl.boatmap
Class BLBoatMap
- public class BLBoatMap
This class draws the views of the boat.
- Author:
- Daniel Nilsson
Constructor Summary |
BLBoatMap() Create a new BLBoatMap. |
dbFloor
DBFloor dbFloor
dbHotSpot
DBHotSpot dbHotSpot
BLBoatMap
public BLBoatMap()
- Create a new BLBoatMap.
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)
to Class com.ltu.smd116.dbp.DBFloor
to Class com.ltu.smd116.dbp.DBHotSpot