PlayerPanel Class Reference
PlayerPanel is used to represent a single player on the DemoPanel. More...
Public Member Functions | |
PlayerPanel (User user) | |
Create a new PlayerPanel. | |
void | dispose () |
Removes this panel as a session listener. | |
boolean | sessionCheck () |
Ensures that this player has a valid Session loaded. | |
void | actionPerformed (ActionEvent e) |
void | unexpectedDisconnect (Device d) |
Executed whenever a Session detects an unexpected disconnect from a Device it is listening to. | |
void | accelerationPerformed (AccelEvent e) |
Executed whenever a Session detects an acceleration from a Device it is listening to. | |
void | gestureComplete (boolean good, Device d) |
Executed whenever a Session detects a complete gesture from a Device it is listening to. | |
void | gestureRecognized (GestureModel g) |
Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode). |
Detailed Description
PlayerPanel is used to represent a single player on the DemoPanel.
This panel is meant to be used on the DemoPanel. It allows the user to load which gesture library they want and what Device they will use.
- See also:
- DemoPanel
Constructor & Destructor Documentation
PlayerPanel | ( | User | user | ) |
Member Function Documentation
void accelerationPerformed | ( | AccelEvent | e | ) |
Executed whenever a Session detects an acceleration from a Device it is listening to.
Implements SessionListener.
void actionPerformed | ( | ActionEvent | e | ) |
void dispose | ( | ) |
Removes this panel as a session listener.
void gestureComplete | ( | boolean | good, | |
Device | d | |||
) |
Executed whenever a Session detects a complete gesture from a Device it is listening to.
Implements SessionListener.
void gestureRecognized | ( | GestureModel | g | ) |
Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode).
- Parameters:
-
g The gesture recognized
- See also:
- Session.inRecognitionMode()
Implements SessionListener.
boolean sessionCheck | ( | ) |
Ensures that this player has a valid Session loaded.
A valid Session is one that contains at least the following gestures:
- Circle
- Square
- Triangle
- X
- Z
- Returns:
true
if and only if the user has the five gestures required to play the game.
void unexpectedDisconnect | ( | Device | d | ) |
Executed whenever a Session detects an unexpected disconnect from a Device it is listening to.
Implements SessionListener.
The documentation for this class was generated from the following file:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/gui/PlayerPanel.java