herzog3d
Class Game
java.lang.Object
herzog3d.HZState
herzog3d.Game
public class Game
- extends HZState
- Author:
- Shannon Smith
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game(Player[] players,
java.lang.String mapName,
ResourceManager resManager)
throws ResourceNotFoundException
- Throws:
ResourceNotFoundException
orderUnit
public void orderUnit(Player player,
java.lang.String unitName)
pickupOrder
public Unit pickupOrder(Player player)
getPlayer
public Player getPlayer()
getWinner
public Player getWinner()
getResources
public ResourceManager getResources()
getMap
public GameMap getMap()
getUnits
public java.util.Collection<Unit> getUnits()
getMechs
public java.util.Collection<Mech> getMechs()
getEffects
public java.util.Collection<Effect> getEffects()
getBases
public java.util.Collection<Base> getBases()
removeUnit
public void removeUnit(Unit unit)
addUnit
public void addUnit(Unit unit)
hasFinished
public boolean hasFinished()
getNextState
public java.lang.String getNextState()
addEffect
public void addEffect(Effect e)
update
public void update(float step)
- Specified by:
update in class HZState
satisfyConstraints
public void satisfyConstraints()
getUnitAt
public Unit getUnitAt(float x,
float y,
float tolerance)
draw
public void draw()
- All rendering is done in here
- Specified by:
draw in class HZState
onKeyPress
public void onKeyPress(HZState.HZKey key)
- Specified by:
onKeyPress in class HZState
onKeyRelease
public void onKeyRelease(HZState.HZKey key)
- Specified by:
onKeyRelease in class HZState
isFinished
public boolean isFinished()
- Specified by:
isFinished in class HZState
getBase
public Base getBase(float x,
float y)