|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.liu.student.kimgr905.tilegame.TileMap
public final class TileMap
Class for handling a TileMap. Contains a linked list of sprites and two sprite objects: player and boss.
| Field Summary | |
|---|---|
private Sprite |
boss
|
private Sprite |
player
|
private java.util.LinkedList<Sprite> |
sprites
|
| Constructor Summary | |
|---|---|
TileMap()
Creates a new TileMap object, with a emty LinkedList. |
|
| Method Summary | |
|---|---|
void |
addSprite(Sprite sprite)
Adds a Sprite to the LinkedList. |
Sprite |
getBoss()
Gets the boss from the TileMap (as a Sprite object). |
Sprite |
getPlayer()
Gets the player from the TileMap (as a Sprite object). |
java.util.Iterator<Sprite> |
getSprites()
Gets a iterator for the LinkedList. |
void |
removeSprite(Sprite sprite)
Removes a Sprite from the LinkedList. |
void |
setBoss(Sprite boss)
Sets the boss on the TileMap (as a Sprite object). |
void |
setPlayer(Sprite player)
Sets the player on the TileMap (as a Sprite object). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.LinkedList<Sprite> sprites
private Sprite player
private Sprite boss
| Constructor Detail |
|---|
public TileMap()
| Method Detail |
|---|
public Sprite getPlayer()
public void setPlayer(Sprite player)
player - see abovepublic Sprite getBoss()
public void setBoss(Sprite boss)
boss - see abovepublic void addSprite(Sprite sprite)
sprite - see abovepublic void removeSprite(Sprite sprite)
sprite - see abovepublic java.util.Iterator<Sprite> getSprites()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||