Enum Constant and Description |
---|
APPLE
A eaten apple
|
ARROW
The arrow prompt for the tutorial
|
ARROWKEYS
The arrow key prompts for the tutorial
|
BACKGROUND
The background image
|
BANANAPEEL
A banana peel
|
CRAB
A crab
|
CRABHEART
An icon for use as a crab;s health
|
DECAY_PLANT
A decaying plant
|
DIRT
spot of dirt where plant resided
|
END_SCREEN
The End Screen
|
FLAG
Flag marking the destination of the garbage truck
|
GARBAGETRUCK
A garbage truck for timer
|
HEART
A heart for use in health icons
|
KID_IDLE_EAST
A kid facing east
|
KID_IDLE_NORTH
A kid facing north
|
KID_IDLE_SOUTH
A kid facing south
|
KID_IDLE_WEST
A kid facing west
|
KID_WALK_EAST
A kid walking east
|
KID_WALK_NORTH
A kid walking north
|
KID_WALK_SOUTH
A kid walking south
|
KID_WALK_WEST
A kid walking west
|
KIDHEAD
The head of a kid
|
LITTERFRAME
A box intended to house a type of litter
|
MUD
spot of mud where plant resided
|
PAPER
A crumpled up piece of paper
|
PLANT
A plant
|
RECYCLEBIN
A recycle bin
|
RECYCLEGLOW
A glowing recycle bin
|
REDPATH
The path on which the garbage truck timer travels
|
RIVER_ALPHA
An alpha map for use rendering the river.
|
RIVER_TEXTURE
A texture of the river.
|
SCORESTAR
A star intended to house the current score
|
SODACAN
A soda can
|
SPACEKEY
A icon representing the space key on a keyboard
|
TITLE_SCREEN
The Title Screen
|
TRASHBIN
A trash bin
|
TRASHGLOW
A glowing trash bin
|
TRY_AGAIN_SCREEN
The Try Again Screen
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fname
The filename (relative to images/) to find the source tileset.
|
private int |
frameDivider
The number ofa in-game frames that progress in order to move on to the next frame of this image.
|
private int |
numTilesHigh
The number of tiles in a single column of the tileset
|
private int |
numTilesWide
The number of tiles in a single row of the tileset
|
private int |
worldHeight
The height of the sprite, in world coordinates.
|
private int |
worldWidth
The width of the sprite, in world coordinates.
|
Modifier and Type | Method and Description |
---|---|
static Sprite.ID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sprite.ID[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sprite.ID BACKGROUND
public static final Sprite.ID KID_WALK_SOUTH
public static final Sprite.ID KID_WALK_NORTH
public static final Sprite.ID KID_WALK_EAST
public static final Sprite.ID KID_WALK_WEST
public static final Sprite.ID KID_IDLE_WEST
public static final Sprite.ID KID_IDLE_EAST
public static final Sprite.ID KID_IDLE_NORTH
public static final Sprite.ID KID_IDLE_SOUTH
public static final Sprite.ID TITLE_SCREEN
public static final Sprite.ID TRY_AGAIN_SCREEN
public static final Sprite.ID END_SCREEN
public static final Sprite.ID CRAB
public static final Sprite.ID SCORESTAR
public static final Sprite.ID LITTERFRAME
public static final Sprite.ID PLANT
public static final Sprite.ID DECAY_PLANT
public static final Sprite.ID DIRT
public static final Sprite.ID MUD
public static final Sprite.ID BANANAPEEL
public static final Sprite.ID SODACAN
public static final Sprite.ID PAPER
public static final Sprite.ID APPLE
public static final Sprite.ID TRASHBIN
public static final Sprite.ID TRASHGLOW
public static final Sprite.ID RECYCLEBIN
public static final Sprite.ID RECYCLEGLOW
public static final Sprite.ID HEART
public static final Sprite.ID CRABHEART
public static final Sprite.ID KIDHEAD
public static final Sprite.ID GARBAGETRUCK
public static final Sprite.ID REDPATH
public static final Sprite.ID FLAG
public static final Sprite.ID ARROWKEYS
public static final Sprite.ID ARROW
public static final Sprite.ID SPACEKEY
public static final Sprite.ID RIVER_TEXTURE
public static final Sprite.ID RIVER_ALPHA
private final java.lang.String fname
private final int worldWidth
private final int worldHeight
private final int numTilesWide
private final int numTilesHigh
private final int frameDivider
public static Sprite.ID[] values()
for (Sprite.ID c : Sprite.ID.values()) System.out.println(c);
public static Sprite.ID valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null