edu.gatech.cs2335.lemmings.gui
Class MiniMap

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.gui.LComponent
      extended byedu.gatech.cs2335.lemmings.gui.LLeafComponent
          extended byedu.gatech.cs2335.lemmings.gui.MiniMap

public final class MiniMap
extends LLeafComponent

Class MiniMap: Contains the minimap of a level.

 Revision History:
     v1.0 (Apr. 23, 2004) - Created the MiniMap class
 

Version:
Version 1.0, Apr. 23, 2004
Author:
Vladimir Urazov

Constructor Summary
MiniMap(Level l)
          Creates a new MiniMap instance.
 
Method Summary
protected  void copy(LComponent component)
          Deep-copies self into the component passed in.
 Level getLevel()
          Get the value of level.
protected  boolean paint(java.awt.Graphics g)
          Performs all of the necessary drawing for this control only.
 void setLevel(Level v)
          Set the value of level.
protected  void updateDimensions()
          Updates the bounds of the button.
protected  void worldToMini(java.awt.Point p)
          Describe worldToMini method here.
 
Methods inherited from class edu.gatech.cs2335.lemmings.gui.LLeafComponent
makeDirty, move, renderAll
 
Methods inherited from class edu.gatech.cs2335.lemmings.gui.LComponent
bringToTop, cleanUp, getBounds, getParent, initialize, isActive, isComponentDirty, isShown, setBounds, setDirty, setParent, setPosition, setShown, setSize, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniMap

public MiniMap(Level l)
Creates a new MiniMap instance.

Parameters:
l - a Level value
Method Detail

getLevel

public Level getLevel()
Get the value of level.

Returns:
value of level.

setLevel

public void setLevel(Level v)
Set the value of level.

Parameters:
v - Value to assign to level.

worldToMini

protected void worldToMini(java.awt.Point p)
Describe worldToMini method here.

Parameters:
p - a Point value

updateDimensions

protected void updateDimensions()
Updates the bounds of the button.

Overrides:
updateDimensions in class LComponent

copy

protected void copy(LComponent component)
Deep-copies self into the component passed in.

Specified by:
copy in class LComponent
Parameters:
component - a LComponent value

paint

protected boolean paint(java.awt.Graphics g)
Performs all of the necessary drawing for this control only. The children will be taken care of separately. This method need not concern itself with them.

Specified by:
paint in class LComponent
Parameters:
g - a Graphics value
Returns:
a boolean value