- I - Variable in class ucigame.Keyboard
-
- Image - Class in ucigame
-
Class for images in ucigame.
- init() - Method in class ucigame.Ucigame
-
non-API
- INSERT - Variable in class ucigame.Keyboard
-
- isAltDown() - Method in class ucigame.Mouse
-
Returns true if the keyboard's Alt key is down when the
mouse is pressed, released, moved, or dragged; false otherwise.
- isAvailableFont(String) - Method in class ucigame.Ucigame
-
Returns true or false depending on whether the specified fontName is
installed on the computer.
- isBackspace(String) - Method in class ucigame.Keyboard
-
- isControlDown() - Method in class ucigame.Mouse
-
Returns true if the keyboard's Ctrl key is down when the
mouse is pressed, released, moved, or dragged; false otherwise.
- isDown(int...) - Method in class ucigame.Keyboard
-
- isMetaDown() - Method in class ucigame.Mouse
-
Returns true if the keyboard's Meta key is down when the
mouse is pressed, released, moved, or dragged; false otherwise.
- isShiftDown() - Method in class ucigame.Mouse
-
Returns true if the keyboard's Shift key is down when the
mouse is pressed, released, moved, or dragged; false otherwise.
- isShown() - Method in class ucigame.Sprite
-
Returns true if the sprite is not currently hidden with hide().
- ITALIC - Static variable in class ucigame.Ucigame
-
- P - Variable in class ucigame.Keyboard
-
- PAGE_DOWN - Variable in class ucigame.Keyboard
-
- PAGE_UP - Variable in class ucigame.Keyboard
-
- PAUSE - Variable in class ucigame.Keyboard
-
- pauseIfCollidesWith(Sprite...) - Method in class ucigame.Sprite
-
This method tests whether this sprite overlaps with the sprite passed in
and pauses.
- PERIOD - Variable in class ucigame.Keyboard
-
- pin(Sprite, int, int) - Method in class ucigame.Sprite
-
Pins pinnedSprite on top of current sprite (this),
which means that pinnedSprite will be drawn whenever this.draw() is
performed.
- PIXELPERFECT - Static variable in class ucigame.Ucigame
-
- PLAIN - Static variable in class ucigame.Ucigame
-
- play() - Method in interface ucigame.Sound
-
Plays the sound once, from beginning to end.
- play(String) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName.
- play(String, int) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName.
- play(String, String) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName, and plays that sequence one time.
- play(String, String, int) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName, and plays that sequence one time.
- play(String, int, String) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName, and plays that sequence repetitions times.
- play(String, int, String, int) - Method in class ucigame.Sprite
-
Sets the sprite's animation sequence to the series of frames
indicated by sequenceName, and plays that sequence repetitions times.
- position(double, double) - Method in class ucigame.Sprite
-
Moves the sprite so that its upper left hand corner is at the specified
position, relative to the upper left hand corner of the canvas (or to
the upper left hand corner of its parent, if this sprite is pinned).
- print(String) - Method in class ucigame.Ucigame
-
Prints information on the console.
- print(int) - Method in class ucigame.Ucigame
-
- print(short) - Method in class ucigame.Ucigame
-
- print(char) - Method in class ucigame.Ucigame
-
- print(double) - Method in class ucigame.Ucigame
-
- print(float) - Method in class ucigame.Ucigame
-
- print(long) - Method in class ucigame.Ucigame
-
- print(boolean) - Method in class ucigame.Ucigame
-
- print(Object) - Method in class ucigame.Ucigame
-
- println(String) - Method in class ucigame.Ucigame
-
Prints information on the console, followed by a new line.
- println(int) - Method in class ucigame.Ucigame
-
- println(short) - Method in class ucigame.Ucigame
-
- println(char) - Method in class ucigame.Ucigame
-
- println(double) - Method in class ucigame.Ucigame
-
- println(float) - Method in class ucigame.Ucigame
-
- println(long) - Method in class ucigame.Ucigame
-
- println(boolean) - Method in class ucigame.Ucigame
-
- println(Object) - Method in class ucigame.Ucigame
-
- putText(int, double, double) - Method in class ucigame.GameCanvas
-
Writes the specified number n on the canvas at location (x, y).
- putText(double, double, double) - Method in class ucigame.GameCanvas
-
Writes the specified number n on the canvas at location (x, y).
- putText(String, double, double) - Method in class ucigame.GameCanvas
-
Writes the specified String string on the canvas at location (x, y).
- putText(int, double, double) - Method in class ucigame.Sprite
-
Draws the specified int N on the sprite, using the sprite's current font.
- putText(double, double, double) - Method in class ucigame.Sprite
-
Draws the specified double D on the sprite, using the sprite's current font.
- putText(String, double, double) - Method in class ucigame.Sprite
-
Draws the specified String on the sprite, using the sprite's current font.
- S - Variable in class ucigame.Keyboard
-
- S_RESIZE - Variable in class ucigame.Mouse
-
- SE_RESIZE - Variable in class ucigame.Mouse
-
- SEMICOLON - Variable in class ucigame.Keyboard
-
- serialVersionID - Static variable in class ucigame.Ucigame
-
- SET - Static variable in class ucigame.Ucigame
-
- setCursor(int) - Method in class ucigame.Mouse
-
Changes the cursor to one of the standard system cursors.
- setCursor(Image, int, int) - Method in class ucigame.Mouse
-
Changes the cursor to the specified Image.
- setfps(int) - Method in class ucigame.GameWindow
-
Method will set the FPS of the window.
- setIconImage(Image) - Method in class ucigame.Ucigame
-
Sets the specified Image as the icon for the game window.
- setTiles(Image, int, int, int...) - Method in class ucigame.Sprite
-
Takes a frame from gameImage (with an upper left hand corner as
specified by x and y and with width and height as specified in
makeTiledSprite()), and puts that frame into one or more of the sprite's
tiles as specified by the col and row pairs specified by location.
- setToFrame(int) - Method in class ucigame.Sprite
-
For an animated sprite, sets the next frame to display
(when sprite1.draw() is next called) to the specified frame in the
current sequence.
- setup() - Method in class ucigame.Ucigame
-
Called by Ucigame once, at the start of the game.
- SHIFT - Variable in class ucigame.Keyboard
-
- shift() - Method in class ucigame.Keyboard
-
Returns true if the Shift key was held down when the last key was pressed; false otherwise.
- show() - Method in class ucigame.Sprite
-
Shows the sprite; cancels the effect of a call to hide().
- showFPS() - Method in class ucigame.GameWindow
-
Method will show the FPS of the window.
- size(int, int) - Method in class ucigame.GameWindow
-
Sets the width and height of the internal area of the window.
- SLASH - Variable in class ucigame.Keyboard
-
- Sound - Interface in ucigame
-
Sound object for the ucigame game.
- SPACE - Variable in class ucigame.Keyboard
-
- sprite() - Method in class ucigame.Mouse
-
Returns the topmost Sprite object under the current mouse position.
- Sprite - Class in ucigame
-
A Sprite object is an image that can be moved around in the game window.
- Sprite(Image) - Constructor for class ucigame.Sprite
-
Creates a Sprite with the same width and height as the specified Image.
- Sprite(int, int, int, int) - Constructor for class ucigame.Sprite
-
Creates a tiled Sprite with the specified number of rows and columns.
- Sprite(int, int) - Constructor for class ucigame.Sprite
-
Creates a Sprite with the specified width and height.
- Sprite(Image, int, int) - Constructor for class ucigame.Sprite
-
Creates a Sprite based on the specified Image object,
with the specified width and height.
- start() - Method in class ucigame.Ucigame
-
non-API
- startScene(String) - Method in class ucigame.Ucigame
-
Defines a new scene for the game.
- startTimer(String, double) - Method in class ucigame.Ucigame
-
Causes the method timerNameTimer() to be run milliBetween milliseconds later,
and every millisBetween milliseconds afterwards.
- stop() - Method in interface ucigame.Sound
-
Stops the sound if it is currently playing (or looping).
- stop() - Method in class ucigame.Ucigame
-
non-API
- stopIfCollidesWith(Sprite...) - Method in class ucigame.Sprite
-
This method tests whether this sprite overlaps with the sprite passed in
and stop movement if collision occurs.
- stopTimer(String) - Method in class ucigame.Ucigame
-
Cancels subsequent executions of the timerNameTimer() method.
- SW_RESIZE - Variable in class ucigame.Mouse
-