Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
W
X
Y
G
GameAction
- Class in
com.brackeen.javagamebook.input
The GameAction class is an abstract to a user-initiated action, like jumping or moving.
GameAction(String)
- Constructor for class com.brackeen.javagamebook.input.
GameAction
Create a new GameAction with the NORMAL behavior.
GameAction(String, int)
- Constructor for class com.brackeen.javagamebook.input.
GameAction
Create a new GameAction with the specified behavior.
GameCore
- Class in
com.brackeen.javagamebook.test
Simple abstract class used for testing.
GameCore()
- Constructor for class com.brackeen.javagamebook.test.
GameCore
gameLoop()
- Method in class com.brackeen.javagamebook.test.
GameCore
Runs through the game loop until stop() is called.
GameManager
- Class in
se.liu.student.kimgr905.tilegame
GameManager manages all parts of the game.
GameManager()
- Constructor for class se.liu.student.kimgr905.tilegame.
GameManager
GameState
- Interface in
com.brackeen.javagamebook.state
GameStateManager
- Class in
com.brackeen.javagamebook.state
GameStateManager(InputManager, Image)
- Constructor for class com.brackeen.javagamebook.state.
GameStateManager
gameStates
- Variable in class com.brackeen.javagamebook.state.
GameStateManager
gc
- Variable in class com.brackeen.javagamebook.state.
ResourceManager
getAimedDx()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Boss.Boss1
Returns the x-velocity of the aimed shot.
getAimedDy()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Boss.Boss1
Returns the x-velocity of the aimed shot.
getAmmo()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Returns the ammo of DOUBLE_LAZER.
getAmount()
- Method in class com.brackeen.javagamebook.input.
GameAction
For keys, this is the number of times the key was pressed since it was last checked.
getAudioInputStream(String)
- Method in class com.brackeen.javagamebook.sound.
SoundManager
Creates an AudioInputStream from a sound from the file system.
getAudioInputStream(InputStream)
- Method in class com.brackeen.javagamebook.sound.
SoundManager
Creates an AudioInputStream from a sound from an input stream
getAverage()
- Method in class com.brackeen.javagamebook.util.
TimeSmoothie
Gets the average of the recorded time samples.
getBoss()
- Method in class se.liu.student.kimgr905.tilegame.
TileMap
Gets the boss from the TileMap (as a Sprite object).
getCompatibleDisplayModes()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Returns a list of compatible display modes for the default device on the system.
getCurrentDisplayMode()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Returns the current display mode.
getFlippedImage(Image)
- Method in class com.brackeen.javagamebook.state.
ResourceManager
getFrame(int)
- Method in class com.brackeen.javagamebook.graphics.
Animation
getFrameRate()
- Method in class com.brackeen.javagamebook.util.
TimeSmoothie
Gets the frame rate (number of calls to getTime() or addSample() in real time).
getFullScreenWindow()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Returns the window currently used in full screen mode.
getGraphics()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Gets the graphics context for the display.
getHeight()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Returns the height of the window currently used in full screen mode.
getHeight()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets this Sprite's height, based on the size of the current image.
getHitPoints()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Ship
Return current hit points of the ship.
getImage()
- Method in class com.brackeen.javagamebook.graphics.
Animation
Gets this Animation's current image.
getImage()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets this Sprite's current image.
getKeyAction(KeyEvent)
- Method in class com.brackeen.javagamebook.input.
InputManager
getKeyName(int)
- Static method in class com.brackeen.javagamebook.input.
InputManager
Gets the name of a key code.
getMaps(GameAction)
- Method in class com.brackeen.javagamebook.input.
InputManager
Gets a List of names of the keys and mouse actions mapped to this GameAction.
getMaxAmmo()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Returns max ammo of DOUBLE_LAZER.
getMaxHitPoints()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Returns the maximum hitpoints of the player.
getMaxSimultaneousSounds(AudioFormat)
- Static method in class com.brackeen.javagamebook.sound.
SoundManager
Gets the maximum number of simultaneous sounds with the specified AudioFormat that the default mixer can play.
getMaxSpeed()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Returns the max speed of the player.
getMirrorImage(Image)
- Method in class com.brackeen.javagamebook.state.
ResourceManager
getMouseButtonAction(MouseEvent)
- Method in class com.brackeen.javagamebook.input.
InputManager
getMouseButtonCode(MouseEvent)
- Static method in class com.brackeen.javagamebook.input.
InputManager
Gets the mouse code for the button specified in this MouseEvent.
getMouseName(int)
- Static method in class com.brackeen.javagamebook.input.
InputManager
Gets the name of a mouse code.
getMouseX()
- Method in class com.brackeen.javagamebook.input.
InputManager
Gets the x position of the mouse.
getMouseY()
- Method in class com.brackeen.javagamebook.input.
InputManager
Gets the y position of the mouse.
getName()
- Method in class com.brackeen.javagamebook.input.
GameAction
Gets the name of this GameAction.
getName()
- Method in interface com.brackeen.javagamebook.state.
GameState
Gets the name of this state.
getPlayer()
- Method in class se.liu.student.kimgr905.tilegame.
TileMap
Gets the player from the TileMap (as a Sprite object).
getRemainingSize()
- Method in class com.brackeen.javagamebook.sound.
EchoFilter
Gets the remaining size, in bytes, of samples that this filter can echo after the sound is done playing.
getRemainingSize()
- Method in class com.brackeen.javagamebook.sound.
FilterSequence
Returns the maximum remaining size of all SoundFilters in this FilterSequence.
getRemainingSize()
- Method in class com.brackeen.javagamebook.sound.
SoundFilter
Gets the remaining size, in bytes, that this filter plays after the sound is finished.
getResource(String)
- Method in class com.brackeen.javagamebook.state.
ResourceManager
getResource(String)
- Method in class se.liu.student.kimgr905.tilegame.
TileGameResourceManager
getResourceAsStream(String)
- Method in class com.brackeen.javagamebook.state.
ResourceManager
getResourceAsStream(String)
- Method in class se.liu.student.kimgr905.tilegame.
GameManager
getSample(byte[], int)
- Static method in class com.brackeen.javagamebook.sound.
SoundFilter
Convenience method for getting a 16-bit sample from a byte array.
getSamples()
- Method in class com.brackeen.javagamebook.sound.
Sound
Returns this Sound's objects samples as a byte array.
getScaledImage(Image, float, float)
- Method in class com.brackeen.javagamebook.state.
ResourceManager
getSequence(String)
- Method in class com.brackeen.javagamebook.sound.
MidiPlayer
Loads a sequence from the file system.
getSequence(InputStream)
- Method in class com.brackeen.javagamebook.sound.
MidiPlayer
Loads a sequence from an input stream.
getSequencer()
- Method in class com.brackeen.javagamebook.sound.
MidiPlayer
Gets the sequencer.
getShieldPoints()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Returns the current shield points.
getSound(String)
- Method in class com.brackeen.javagamebook.sound.
SoundManager
Loads a Sound from the file system.
getSound(InputStream)
- Method in class com.brackeen.javagamebook.sound.
SoundManager
Loads a Sound from an input stream.
getSound(AudioInputStream)
- Method in class com.brackeen.javagamebook.sound.
SoundManager
Loads a Sound from an AudioInputStream.
getSpriteCollision(Sprite)
- Method in class se.liu.student.kimgr905.tilegame.
GameManager
Checks for sprite collison with the sprite given as argument and returns the collding sprite (if it collided), if no collision was found null is returned.
getSprites()
- Method in class se.liu.student.kimgr905.tilegame.
TileMap
Gets a iterator for the LinkedList.
getState()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets the state of this Creature.
getStates()
- Method in class com.brackeen.javagamebook.state.
GameStateManager
getTask()
- Method in class com.brackeen.javagamebook.util.
ThreadPool
getTime(long)
- Method in class com.brackeen.javagamebook.util.
TimeSmoothie
Adds the specified time sample and returns the average of all the recorded time samples.
getVelocityX()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets the horizontal velocity of this Sprite in pixels per millisecond.
getVelocityY()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets the vertical velocity of this Sprite in pixels per millisecond.
getWeapon()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Player
Gets the current weapon, it can either be SINGLE_LAZER or DOUBLE_LAZER.
getWidth()
- Method in class com.brackeen.javagamebook.graphics.
ScreenManager
Returns the width of the window currently used in full screen mode.
getWidth()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets this Sprite's width, based on the size of the current image.
getX()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets this Sprite's current x position.
getY()
- Method in class se.liu.student.kimgr905.tilegame.sprites.
Sprite
Gets this Sprite's current y position.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
W
X
Y