All Packages
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- Actor(Gamelet).
Constructor for class gamelet.Actor
- Initializes the actor
- addActor(Actor).
Method in class gamelet.Gamelet
- Add an actor to the gamelet.
- bounceOff(Actor).
Method in class gamelet.Actor
- Bounce off the specified Actor.
- calculateCurrentFrame().
Method in class gamelet.Actor
- Calculates the current frame.
- calculateNewPosition().
Method in class gamelet.Actor
- Calculates the new X and Y position based on velocity and time.
- checkForOutOfBounds().
Method in class gamelet.Actor
- Check for out of bounds and wrap if it is.
- collideWithActor(Actor).
Method in class gamelet.Actor
- Override this method to handle the case when Actor collides with another.
- deltaTickTimeMillis().
Method in class gamelet.Gamelet
- Calculate the difference between the current tick and the last one.
- draw(Graphics).
Method in class gamelet.Actor
- Each Actor is handed a g and is expected to draw itself in it.
- Gamelet(String, int, int, String).
Constructor for class gamelet.Gamelet
- Initialize and display a Gamelet, set a Background image.
- getCurrentFrame().
Method in class gamelet.Actor
- return current frame index which will be displayed next.
- getGamelet().
Method in class gamelet.Actor
-
Return the Gamelet.
- getHeight().
Method in class gamelet.Actor
- return height of actor image.
- getHeight().
Method in class gamelet.Gamelet
- Return height of visible area.
- getImage(String).
Method in class gamelet.Gamelet
- Load an image for use in an Actor.
- getInfo().
Static method in class gamelet.Gamelet
- Provide standard Gamelet info.
- getNumFrames().
Method in class gamelet.Actor
- Return the number of frames, the actor image consists of.
- getWidth().
Method in class gamelet.Actor
- return width of actor image.
- getWidth().
Method in class gamelet.Gamelet
- Return width of visible area.
- getWrapAround().
Method in class gamelet.Actor
- Get current wraparound behaviour.
- getXPos().
Method in class gamelet.Actor
- get x Position of this actor.
- getXVelocity().
Method in class gamelet.Actor
- Get Velocity in X Dimension.
- getYPos().
Method in class gamelet.Actor
- get y position of this actor.
- getYVelocity().
Method in class gamelet.Actor
- Get Velocity in Y Dimension.
- handleEvent(Event).
Method in class gamelet.Gamelet
- Pass the event along to the EventManager for handling.
- paint(Graphics).
Method in class gamelet.Gamelet
- Pass the Graphics onto the DisplayManager.
- randBetween(double, double).
Static method in class gamelet.Gamelet
- Generate a random double between two doubles.
- removeActor(Actor).
Method in class gamelet.Gamelet
- Remove an actor from the gamelet.
- run().
Method in class gamelet.Gamelet
- Execution loop.
- runGame().
Method in class gamelet.Gamelet
- Start the game.
- setCurrentFrame(int).
Method in class gamelet.Actor
- set the current frame index.
- setImage(Image).
Method in class gamelet.Actor
- Set the image used for animation.
- setImage(Image, int, int).
Method in class gamelet.Actor
- Set the image used for animation.
- setImage(Image, int, int, int, int).
Method in class gamelet.Actor
- Set the image used for animation.
- setWrapAround(boolean).
Method in class gamelet.Actor
- Change wraparound behaviour.
- setXPos(double).
Method in class gamelet.Actor
- set x Position of this actor.
- setXVelocity(double).
Method in class gamelet.Actor
- Set Velocity in X Dimension.
- setYPos(double).
Method in class gamelet.Actor
- set y position of this actor.
- setYVelocity(double).
Method in class gamelet.Actor
- Set Velocity in Y Dimension.
- stop().
Method in class gamelet.Gamelet
- Stop the game.
- update(Graphics).
Method in class gamelet.Gamelet
- Override update to avoid screen clears.