|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.model.gameobject.PictureList
public class PictureList
A PictureList is a list of lists of pictures. There is one list of pictures for each valid state as defined in GameObjStates. Each list enumerates the frames of animation to show for a game object in that state.
Each GameObj should have a unique instance of this class, and every picture in that instance must depict that particular GameObj. For instance, either Jeff or an enemy can be in the GameObjStates.RUNNING state, but there are different animations for Jeff running and an enemy running.
Each list of pictures for a particular state will be henceforth referred to as a "film." This class will be able to contain as many films as there are valid states in the game.
Constructor Summary | |
---|---|
PictureList()
Creates an empty picture list database. |
Method Summary | |
---|---|
void |
addFilm(java.util.List<java.io.File> l,
GameObjState g)
Adds a list of pictures to the PictureList |
java.util.List<java.io.File> |
getFilm(GameObjState g)
Accesses the film for a given state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PictureList()
Method Detail |
---|
public java.util.List<java.io.File> getFilm(GameObjState g)
gameObjState
- a constant value from GameObjStates
public void addFilm(java.util.List<java.io.File> l, GameObjState g)
l
- The list of pictures to be addedg
- The state under which the list will be added
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |