com.webkitchen.brainathlon.data
Class PlayerData

java.lang.Object
  extended by com.webkitchen.brainathlon.data.PlayerData

public class PlayerData
extends java.lang.Object

Contains the necessary data to add a new player to the game - Created by NewPlayerUI and passed into Application to create the actual Player object


Constructor Summary
PlayerData(java.lang.String firstName, int[] channels, java.lang.Integer playerInstrument)
          Create a new PlayerData object
 
Method Summary
 int[] getChannels()
           
 java.lang.String getFirstName()
           
 java.lang.Integer getInstrument()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayerData

public PlayerData(java.lang.String firstName,
                  int[] channels,
                  java.lang.Integer playerInstrument)
Create a new PlayerData object

Parameters:
firstName - the players first name
channels - the players EEG channel(s)
playerInstrument - the feedback instrument selection
Method Detail

getFirstName

public java.lang.String getFirstName()

getChannels

public int[] getChannels()

getInstrument

public java.lang.Integer getInstrument()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object