Skip navigation links
A B C D E F G H I L M N O P Q R S T U V X Y 

A

addClient(IMessageClient) - Method in class com.thekeirs.games.engine.MessageBus
 
addObject(GameObject) - Method in class com.thekeirs.games.engine.GameObjectManager
Adds a GameObject or a subclass into the list of objects being managed.
Audio - Class in com.thekeirs.games.engine
A simple but high-performance audio clip player
Audio() - Constructor for class com.thekeirs.games.engine.Audio
 

B

BackgroundImageScene - Class in com.thekeirs.games.engine
A scene consisting of a single fixed background image
BackgroundImageScene(GameObjectManager, int) - Constructor for class com.thekeirs.games.engine.BackgroundImageScene
Create a new BackgroundImageScene with the given image.
between(int, int) - Static method in class com.thekeirs.games.engine.Rand
Returns a random number between min and max
boundingRect - Variable in class com.thekeirs.games.engine.GameObject
Tracks the upper left and lower right coordinates of a box that surrounds this object in world coordinates.

C

com.thekeirs.games.engine - package com.thekeirs.games.engine
 
contains(float, float) - Method in class com.thekeirs.games.engine.GameObject
Checks if this game object's bounding box includes a given point.

D

draw(Canvas) - Method in class com.thekeirs.games.engine.BackgroundImageScene
Used by the game engine to draw the image on the screen.
draw(Canvas, float, float) - Method in class com.thekeirs.games.engine.GameObject
Must be implemented by any subclasses to do the work of actually drawing the game object onto the screen.
draw(Canvas) - Method in class com.thekeirs.games.engine.GameObjectManager
Called by the game engine thread to redraw all game objects.
draw(Canvas) - Method in interface com.thekeirs.games.engine.GameView.IRedrawService
 
draw(Canvas) - Method in class com.thekeirs.games.engine.Scene
 
draw(Canvas) - Method in class com.thekeirs.games.engine.SolidColorScene
Called by the game engine to draw this background onto the screen each frame.
draw(Canvas, float, float) - Method in class com.thekeirs.games.engine.Sprite
Called by the Game Engine to draw this sprite onto the screen every frame.
dx - Variable in class com.thekeirs.games.engine.GameView.UIEvent
 
dy - Variable in class com.thekeirs.games.engine.GameView.UIEvent
 

E

event1 - Variable in class com.thekeirs.games.engine.GameView.UIEvent
 
event2 - Variable in class com.thekeirs.games.engine.GameView.UIEvent
 

F

finish() - Method in class com.thekeirs.games.engine.GameLevel
Called by the game object manager when this level is about to be destroyed before starting a new level.

G

GameLevel - Class in com.thekeirs.games.engine
Abstract superclass to represent one level in a game
GameLevel() - Constructor for class com.thekeirs.games.engine.GameLevel
This constructor does nothing.
GameObject - Class in com.thekeirs.games.engine
Abstract superclass to represent a game object in the game world
GameObject(String, RectF) - Constructor for class com.thekeirs.games.engine.GameObject
Basic constructor.
GameObjectManager - Class in com.thekeirs.games.engine
The central class of the game engine, responsible for keeping track of all the game objects helping them interact with the Android system.
GameObjectManager(MessageBus, Resources) - Constructor for class com.thekeirs.games.engine.GameObjectManager
Called by the game's main Activity to set up all the game logic.
GameView - Class in com.thekeirs.games.engine
[internal] Android User Interface widget that provides the space for the game to draw on
GameView(Context) - Constructor for class com.thekeirs.games.engine.GameView
 
GameView(Context, AttributeSet) - Constructor for class com.thekeirs.games.engine.GameView
 
GameView(Context, AttributeSet, int) - Constructor for class com.thekeirs.games.engine.GameView
 
GameView.IGameLogicService - Interface in com.thekeirs.games.engine
 
GameView.IRedrawService - Interface in com.thekeirs.games.engine
 
GameView.UIEvent - Class in com.thekeirs.games.engine
 
GameView.UIEventType - Enum in com.thekeirs.games.engine
 
GameViewThread - Class in com.thekeirs.games.engine
[internal] This is the thread where all update() and draw() calls are done for every game object
GameViewThread(SurfaceHolder, GameView.IGameLogicService, GameView.IRedrawService) - Constructor for class com.thekeirs.games.engine.GameViewThread
 
getObjectByName(String) - Method in class com.thekeirs.games.engine.GameObjectManager
Look up the first object that was registered with name name
getObjectsMatching(String) - Method in class com.thekeirs.games.engine.GameObjectManager
Return a list of all game objects whose names start with the given prefix.
getResources() - Method in class com.thekeirs.games.engine.GameObjectManager
Returns the cached resources object.
getTimeOnScreen() - Method in class com.thekeirs.games.engine.GameObject
Check how long a game object has been alive.
getWorldScreenHeight() - Method in class com.thekeirs.games.engine.GameObjectManager
Get the currently-configured world height in world units
getWorldScreenWidth() - Method in class com.thekeirs.games.engine.GameObjectManager
Get the currently-configured world width in world units
gracefulStop() - Method in class com.thekeirs.games.engine.GameViewThread
 

H

handleMessage(Message) - Method in class com.thekeirs.games.engine.GameObjectManager
Ignore this for now.
handleMessage(Message) - Method in interface com.thekeirs.games.engine.IMessageClient
 
hop(float, float) - Method in class com.thekeirs.games.engine.GameObject
Instantaneously move the game object a given distance in the given direction.
hopToward(float, float, float) - Method in class com.thekeirs.games.engine.GameObject
Instantaneously hop the sprite a given distance in the direction of another point in world space.

I

IMessageClient - Interface in com.thekeirs.games.engine
[internal] Interface for clients who want to receive messages from the MessageBus
intersects(GameObject) - Method in class com.thekeirs.games.engine.GameObject
Checks if this game object's bounding area intersects at all with another game object.
isFullyOffScreen() - Method in class com.thekeirs.games.engine.GameObject
Returns true if this object is entirely outside the boundaries of the screen at the object's current location.
isFullyOffScreen(GameObject) - Method in class com.thekeirs.games.engine.GameObjectManager
Returns true if the object is entirely outside the boundaries of the screen at the object's current location.
isFullyOnScreen() - Method in class com.thekeirs.games.engine.GameObject
Returns true if this game object is entirely within the boundaries of the screen at the object's current location.
isFullyOnScreen(GameObject) - Method in class com.thekeirs.games.engine.GameObjectManager
Returns true if the game object is entirely within the boundaries of the screen at the object's current location.
isInside(GameObject) - Method in class com.thekeirs.games.engine.GameObject
Checks if this game object's bounding rectangle is entirely inside of another object.

L

loadImage(int) - Method in class com.thekeirs.games.engine.Sprite
Configures the Sprite to display the image with the given id.

M

manager - Variable in class com.thekeirs.games.engine.GameObject
To be useful, every game object must register with the game object manager
mBus - Variable in class com.thekeirs.games.engine.GameObjectManager
An instance of the MessageBus that can be used to send messages, assuming we start using that feature again.
Message - Class in com.thekeirs.games.engine
[internal] Used to encapsulate a message to be sent on the MessageBus.
Message(String) - Constructor for class com.thekeirs.games.engine.Message
 
Message(String, int, int) - Constructor for class com.thekeirs.games.engine.Message
 
Message(String, Object) - Constructor for class com.thekeirs.games.engine.Message
 
MessageBus - Class in com.thekeirs.games.engine
[internal] Originally the MessageBus was a central part of the game engine's design, but it hasn't proven terribly useful and may be going away.
MessageBus() - Constructor for class com.thekeirs.games.engine.MessageBus
 
mImage - Variable in class com.thekeirs.games.engine.Sprite
Stores the bitmap image to be displayed by this sprite
mImageId - Variable in class com.thekeirs.games.engine.Sprite
Holds the resource ID (R.drawable.* or R.raw.*) for this sprite's image
mManager - Variable in class com.thekeirs.games.engine.GameLevel
Reference to the game object manager currently in charge.
moveBy(float, float) - Method in class com.thekeirs.games.engine.GameObject
Adjust the game object's position by a given dx and dy offset

N

name - Variable in class com.thekeirs.games.engine.GameObject
The game object's name, used to look up an object in the game manager, or determine which object something has collided with.

O

onAnyFling(float, float, float, float) - Method in class com.thekeirs.games.engine.GameLevel
Override this routine if you want your central game logic to handle ALL screen fling actions.
onAnyTouch(float, float) - Method in class com.thekeirs.games.engine.GameLevel
Override this routine if you want your central game logic to handle ALL screen touches.
onceEvery(float) - Static method in class com.thekeirs.games.engine.Rand
Randomly returns true approximately once every seconds seconds.
onFling(float, float, float, float) - Method in class com.thekeirs.games.engine.GameObject
Called when the user makes a fling motion on the screen, starting at a location inside this game object's bounding box.
onFling(float, float, float, float) - Method in class com.thekeirs.games.engine.Sprite
Called when the user makes a fling motion on the screen, starting at a location inside this sprite's bounding box.
onMotionEvent(GameView.UIEvent) - Method in class com.thekeirs.games.engine.GameObjectManager
Called by the game engine thread as events arrive.
onMotionEvent(GameView.UIEvent) - Method in interface com.thekeirs.games.engine.GameView.IGameLogicService
 
onPause() - Static method in class com.thekeirs.games.engine.Audio
Called by the game engine to pause sound playing.
onPause() - Method in class com.thekeirs.games.engine.GameView
 
onResume(Context) - Static method in class com.thekeirs.games.engine.Audio
Called by the game engine to resume sound playing after a pause.
onResume() - Method in class com.thekeirs.games.engine.GameView
 
onTouch(float, float) - Method in class com.thekeirs.games.engine.GameObject
Called when the user taps the screen at a location inside this game object's bounding box.
onTouch(float, float) - Method in class com.thekeirs.games.engine.Sprite
Called when the user taps the screen at a location inside this sprite's bounding box.
onUnclaimedFling(float, float, float, float) - Method in class com.thekeirs.games.engine.GameLevel
Override this routine if you want your central game logic to handle screen fling actions that don't start on a game object.
onUnclaimedScroll(float, float, float, float, boolean) - Method in class com.thekeirs.games.engine.GameLevel
Override this routine if you want to detect "scroll" events on the screen.
onUnclaimedTouch(float, float) - Method in class com.thekeirs.games.engine.GameLevel
Override this routine if you want your central game logic to handle screen touches that don't hit any game objects.

P

play(int) - Static method in class com.thekeirs.games.engine.Audio
Request that a sound be played.
postMessage(Message) - Method in class com.thekeirs.games.engine.MessageBus
 

Q

queueEvent(GameView.UIEvent) - Method in class com.thekeirs.games.engine.GameViewThread
UI Events arrive on the UI thread and must be handed off to the worker thread

R

Rand - Class in com.thekeirs.games.engine
Helper functions for using random numbers in your game
Rand() - Constructor for class com.thekeirs.games.engine.Rand
 
removalRequested() - Method in class com.thekeirs.games.engine.GameObject
Check if this game object is scheduled for removal
requestRemoval() - Method in class com.thekeirs.games.engine.GameObject
Request that the game object manager remove this sprite after this update loop is complete.
run() - Method in class com.thekeirs.games.engine.GameViewThread
 

S

Scene - Class in com.thekeirs.games.engine
An abstract scene (background for a level) class
Scene() - Constructor for class com.thekeirs.games.engine.Scene
 
setEventScalingFactors(float, float) - Method in class com.thekeirs.games.engine.GameViewThread
Set factors to normalize user input event coordinates into range 0.0-1.0
setGameLogicService(GameView.IGameLogicService) - Method in class com.thekeirs.games.engine.GameView
 
setImage(int) - Method in class com.thekeirs.games.engine.BackgroundImageScene
Change the image associated with this scene.
setLevel(GameLevel) - Method in class com.thekeirs.games.engine.GameObjectManager
Requests the game engine to move to a different game level after the current update/draw cycle is complete.
setManager(GameObjectManager) - Method in class com.thekeirs.games.engine.GameObject
Called by the GameObjectManager to be sure this game object knows who its manager is.
setMaxTimeOnScreen(int) - Method in class com.thekeirs.games.engine.GameObject
Configure this game object to self-destruct after a given number of milliseconds on the screen.
setObjectManager(GameObjectManager) - Method in class com.thekeirs.games.engine.GameLevel
Called by the object manager to configure this level.
setRedrawService(GameView.IRedrawService) - Method in class com.thekeirs.games.engine.GameView
 
setScene(Scene) - Method in class com.thekeirs.games.engine.GameObjectManager
Set the scene to be used as a background starting on the next draw() cycle.
setup() - Method in class com.thekeirs.games.engine.GameLevel
Your setup method is where all your work for setting up a new level should go.
setWorldScreenSize(float, float) - Method in class com.thekeirs.games.engine.GameObjectManager
Sets the width and height of the game world in arbitrary units.
SolidColorScene - Class in com.thekeirs.games.engine
Gives your level a background scene that is all one solid color
SolidColorScene(String) - Constructor for class com.thekeirs.games.engine.SolidColorScene
Creates a new SolidColorScene object with the specified color.
Sprite - Class in com.thekeirs.games.engine
Represents a GameObject that has an image associated with it, and a location on the screen to draw that image (left x, upper y, width, height).
Sprite(String, float, float, float, float) - Constructor for class com.thekeirs.games.engine.Sprite
Returns a Sprite game object with the given name and location/size on the screen.
Sprite(String, float, float, float, float, int) - Constructor for class com.thekeirs.games.engine.Sprite
Returns a Sprite game object with the given name and location/size on the screen and the given image.
surfaceChanged(SurfaceHolder, int, int, int) - Method in class com.thekeirs.games.engine.GameView
 
surfaceCreated(SurfaceHolder) - Method in class com.thekeirs.games.engine.GameView
 
surfaceDestroyed(SurfaceHolder) - Method in class com.thekeirs.games.engine.GameView
 

T

type - Variable in class com.thekeirs.games.engine.Message
 

U

update(int) - Method in class com.thekeirs.games.engine.GameLevel
You can choose how much of your game logic is done by individual sprites and how much is done centrally here in your override of the update method.
update(int) - Method in class com.thekeirs.games.engine.GameObject
Called once per screen refresh by the GameObjectManager to update the size, location, or other attributes of this game object as needed by the game's logic.
update(int) - Method in class com.thekeirs.games.engine.GameObjectManager
Called by the game engine thread to update all game objects.
update(int) - Method in interface com.thekeirs.games.engine.GameView.IGameLogicService
 
update(int) - Method in class com.thekeirs.games.engine.Sprite
Called once per screen refresh to do whatever modifications are desired to the sprite's location, size, etc.

V

valueOf(String) - Static method in enum com.thekeirs.games.engine.GameView.UIEventType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.thekeirs.games.engine.GameView.UIEventType
Returns an array containing the constants of this enum type, in the order they are declared.

X

x - Variable in class com.thekeirs.games.engine.Message
 

Y

y - Variable in class com.thekeirs.games.engine.Message
 
A B C D E F G H I L M N O P Q R S T U V X Y 
Skip navigation links