|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeux_etudiant.World
public class World
Field Summary | |
---|---|
private java.util.Vector<Entity> |
entities
La collection des entités qui peuplent le monde. |
private int |
height
La hauteur du jeux |
private SoundCache |
soundCache
Le gestionnaire de son |
private SpriteCache |
spriteCache
Le gestionnaire de sprite |
private int |
width
La largeur du jeux |
Constructor Summary | |
---|---|
World()
Construit un monde en 800 par 600 |
|
World(int width,
int height)
|
Method Summary | |
---|---|
void |
addEntity(Entity entity)
|
java.util.Vector<Entity> |
getEntities()
|
int |
getHeight()
|
SoundCache |
getSoundCache()
|
SpriteCache |
getSpriteCache()
|
int |
getWidth()
|
void |
removeEntity(Entity entity)
|
void |
setEntities(java.util.Vector<Entity> entities)
|
void |
setHeight(int height)
|
void |
setWidth(int width)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int width
private int height
private java.util.Vector<Entity> entities
private SpriteCache spriteCache
private SoundCache soundCache
Constructor Detail |
---|
public World(int width, int height)
width
- la largeurheight
- la hauteur public World()
Method Detail |
---|
public void addEntity(Entity entity)
entity
- la nouvelle entitépublic void removeEntity(Entity entity)
entity
- l'entité qui quitte le monde public int getWidth()
public void setWidth(int width)
width
- La largueur à positionner.public int getHeight()
public void setHeight(int height)
height
- La hauteur à positionner.public java.util.Vector<Entity> getEntities()
public void setEntities(java.util.Vector<Entity> entities)
entities
- les entités qui peuleront le mondepublic SpriteCache getSpriteCache()
public SoundCache getSoundCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |