|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.data.World
public class World
The world containing all the data to be represented
Constructor Summary | |
---|---|
World()
Constructs an empty world |
Method Summary | |
---|---|
void |
addEntity(WorldEntity e)
Adds an entity to the world |
void |
draw(GL10 gl)
|
Point3 |
getLocation()
Returns the user location in the world |
java.util.Collection<WorldEntity> |
getWorldEntities()
Returns the world entities |
WorldEntity |
getWorldEntity(int id)
Returns the entity for the given id |
void |
removeAllEntities()
Remove all the entities of the world |
void |
removeEntity(java.lang.Integer id)
Removes an entity to the world |
void |
setLocation(Point3 location)
Sets the location for the user in the world |
void |
update(long elapsed)
Updates the world animation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public World()
Method Detail |
---|
public void addEntity(WorldEntity e)
e
- the entity to be addedpublic void draw(GL10 gl)
public Point3 getLocation()
public java.util.Collection<WorldEntity> getWorldEntities()
public WorldEntity getWorldEntity(int id)
id
- the id
public void removeAllEntities()
public void removeEntity(java.lang.Integer id)
id
- the entity's idpublic void setLocation(Point3 location)
location
- the location for the user in the worldpublic void update(long elapsed)
elapsed
- elapsed time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |