Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
P
R
S
U
W
A
add(Card)
- Method in class m3g10.
CardDeck
Adds a card to the deck.
allCardsMatched()
- Method in class m3g10.
CardDeck
Checks whether all cards were matched.
B
backCommand
- Variable in class m3g10.
Main
Back command.
C
Card
- Class in
m3g10
Data related to a card in the memory game.
Card(Mesh)
- Constructor for class m3g10.
Card
Creates a new card with information from the mesh's user object.
CardDeck
- Class in
m3g10
Manages cards in a deck.
CardDeck()
- Constructor for class m3g10.
CardDeck
cardDeck
- Variable in class m3g10.
UserDataSample
Deck of cards.
cards
- Variable in class m3g10.
CardDeck
The cards.
closeAll()
- Method in class m3g10.
CardDeck
Closes all cards except for cards that were successfully matched.
commandAction(Command, Displayable)
- Method in class m3g10.
Main
Receives command actions from the selection screen as well as the samples.
currentCard
- Variable in class m3g10.
CardDeck
Currently selected card.
currentModel
- Variable in class m3g10.
M3gFileSample
Current model.
currentSample
- Variable in class m3g10.
Main
Currently displayed sample.
D
description
- Variable in class m3g10.
Card
The card's description.
destroy()
- Method in class m3g10.
M3gFileSample
Destroys the sample.
destroy()
- Method in interface m3g10.
Sample
Tells the sample to destroy itself.
destroy()
- Method in class m3g10.
UserDataSample
Destroys the sample.
destroyApp(boolean)
- Method in class m3g10.
Main
Enters the destroyed state.
drawMenu(Graphics)
- Method in class m3g10.
M3gFileSample
Draws a menu for the current key assignments.
E
exitCommand
- Variable in class m3g10.
Main
Exit command.
F
findCard(int)
- Method in class m3g10.
CardDeck
Finds the card with the given key code.
G
getBoolean(Hashtable, int, boolean)
- Static method in class m3g10.
UserData
Deserializes a user parameter as boolean from user data.
getCurrentCard()
- Method in class m3g10.
CardDeck
Getter for current card.
getDescription()
- Method in class m3g10.
Card
Getter for description.
getFloat(Hashtable, int, float)
- Static method in class m3g10.
UserData
Deserializes a user parameter as float from user data.
getInt(Hashtable, int, int)
- Static method in class m3g10.
UserData
Deserializes a user parameter as int from user data.
getKeyCode()
- Method in class m3g10.
Card
Getter for key code.
getMesh()
- Method in class m3g10.
Card
Getter for mesh.
getNumberOfCards()
- Method in class m3g10.
CardDeck
Getter for number of cards.
getString(Hashtable, int, String)
- Static method in class m3g10.
UserData
Deserializes a user parameter as String from user data.
graphics
- Variable in class m3g10.
M3gFileSample
2D graphics singleton used for rendering.
graphics
- Variable in class m3g10.
UserDataSample
2D graphics singleton used for rendering.
graphics3d
- Variable in class m3g10.
M3gFileSample
3D graphics singleton used for rendering.
graphics3d
- Variable in class m3g10.
UserDataSample
3D graphics singleton used for rendering.
H
hasLost()
- Method in class m3g10.
CardDeck
Returns true if player has lost.
hasWon()
- Method in class m3g10.
CardDeck
Returns true if player has won.
I
init()
- Method in class m3g10.
CardDeck
Initializes cards by closing them and setting the match flag to false.
init()
- Method in class m3g10.
M3gFileSample
Initializes the sample.
init()
- Method in interface m3g10.
Sample
Tells the sample to initialize itself.
init()
- Method in class m3g10.
UserDataSample
Initializes the sample.
isCard(Object3D)
- Static method in class m3g10.
Card
Checks whether a scene object is a card.
isMatch(Card)
- Method in class m3g10.
Card
Checks if this card pairs with the given card.
isMatched
- Variable in class m3g10.
Card
Flag whether card was succesfully matched.
isMatched()
- Method in class m3g10.
Card
Getter for match flag.
isOpen
- Variable in class m3g10.
Card
State of the card.
isOpen()
- Method in class m3g10.
Card
Getter for card state.
isTrigger
- Variable in class m3g10.
Card
Whether this card triggers an action.
isTrigger()
- Method in class m3g10.
Card
Getter for action trigger.
K
keyCode
- Variable in class m3g10.
Card
Key code to open/close a card.
keyPressed(int)
- Method in class m3g10.
M3gFileSample
Handles key presses.
keyPressed(int)
- Method in class m3g10.
UserDataSample
Handles key presses.
L
loadScene(String)
- Method in class m3g10.
M3gFileSample
Loads a scene graph from the given URL and adjusts the active camera to match the current device.
M
m3g10
- package m3g10
M3gFileSample
- Class in
m3g10
Loads 3D models from M3G files that were created with Blender.
M3gFileSample()
- Constructor for class m3g10.
M3gFileSample
Constructor.
Main
- Class in
m3g10
Application that runs the samples available in this chapter.
Main()
- Constructor for class m3g10.
Main
Constructor.
mesh
- Variable in class m3g10.
Card
Mesh object representing the look of the card.
mesh
- Variable in class m3g10.
M3gFileSample
Mesh for rotation.
MODELS
- Static variable in class m3g10.
M3gFileSample
M3G models.
P
pauseApp()
- Method in class m3g10.
Main
Enters the paused state.
process(int)
- Method in class m3g10.
CardDeck
Main loop which advances the game state.
R
render(Graphics)
- Method in class m3g10.
M3gFileSample
Renders the sample.
render(Graphics)
- Method in class m3g10.
UserDataSample
Renders the sample.
S
Sample
- Interface in
m3g10
Interface that needs to be implemented by samples.
SAMPLES
- Static variable in class m3g10.
Main
List of samples.
selectionScreen
- Variable in class m3g10.
Main
Screen for selecting samples.
setKeyCode(int)
- Method in class m3g10.
Card
Setter for key code.
setMatched(boolean)
- Method in class m3g10.
Card
Setter for match flag.
setOpen(boolean)
- Method in class m3g10.
Card
Opens (image is visible) or closes (cover is visible) a card.
shuffle()
- Method in class m3g10.
CardDeck
Assigns cards a random place and closes them.
startApp()
- Method in class m3g10.
Main
Enters the active state.
state
- Variable in class m3g10.
CardDeck
Current game state.
STATE_LOST
- Static variable in class m3g10.
CardDeck
State LOST.
STATE_MATCH
- Static variable in class m3g10.
CardDeck
State MATCH.
STATE_NO_MATCH
- Static variable in class m3g10.
CardDeck
State NO_MATCH.
STATE_ONE_CARD
- Static variable in class m3g10.
CardDeck
State ONE_CARD.
STATE_START
- Static variable in class m3g10.
CardDeck
State START.
STATE_WON
- Static variable in class m3g10.
CardDeck
State WON.
swap(Card)
- Method in class m3g10.
Card
Swaps places between this card and the given card.
switchSample(Sample)
- Method in class m3g10.
Main
Destroys the current sample if it exists and displays a new one.
U
USER_ID_MESH
- Static variable in class m3g10.
M3gFileSample
User ID to find the mesh inside the scene graph.
USER_PARAM_DESCRIPTION
- Static variable in class m3g10.
Card
User parameter for description.
USER_PARAM_KEYCODE
- Static variable in class m3g10.
Card
User parameter for key code.
USER_PARAM_TRIGGER
- Static variable in class m3g10.
Card
User parameter for trigger.
UserData
- Class in
m3g10
Utility methods that deserialize user parameters stored in a user object.
UserData()
- Constructor for class m3g10.
UserData
Constructor has private access because class contains static methods exclusively.
UserDataSample
- Class in
m3g10
Memory game that uses information serialized in a model's user data.
UserDataSample()
- Constructor for class m3g10.
UserDataSample
Constructor.
W
world
- Variable in class m3g10.
M3gFileSample
Object that represents the 3D world.
world
- Variable in class m3g10.
UserDataSample
Object that represents the 3D world.
A
B
C
D
E
F
G
H
I
K
L
M
P
R
S
U
W
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes