|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.physics.PhysicsObject
edu.gatech.cs2335.lemmings.engine.Lemming
Represents a generic lemming, that can move around, and do stuff. What exactly it does is decided by the lemming's occupation.
LemmingJob| Constructor Summary | |
Lemming()
Creates a new Lemming instance. |
|
| Method Summary | |
void |
cleanUp()
Describe cleanUp method here. |
LemmingJob |
getOccupation()
Access method for the occupation property. |
PhysicsObject |
getPhysics()
Access method for the physics property. |
void |
setOccupation(LemmingJob job)
Describe setOccupation method here. |
void |
setOccupation(java.lang.String id)
Sets the value of the occupation property. |
java.lang.String |
toString()
Returns a string representation of a lemming. |
void |
updateDirection()
This method should be called whenever the lemming's direction changes. |
| Methods inherited from class edu.gatech.cs2335.lemmings.physics.PhysicsObject |
accelerate, getGravityUpdates, getPosition, getVelocity, isFalling, setGravityUpdates, setPosition, setPosition, setVelocity, updatePosition, updatePosition, updateVelocity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Lemming()
Lemming instance.
| Method Detail |
public void cleanUp()
cleanUp method here.
cleanUp in interface ICleanablepublic LemmingJob getOccupation()
public void setOccupation(java.lang.String id)
id - the id of the occupation to give this lemming.public void setOccupation(LemmingJob job)
setOccupation method here.
job - a LemmingJob valuepublic PhysicsObject getPhysics()
public void updateDirection()
public java.lang.String toString()
toString in class PhysicsObjectString value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||