wiiusej.wiiusejevents
Class GenericEvent

java.lang.Object
  extended by wiiusej.wiiusejevents.GenericEvent
Direct Known Subclasses:
ButtonsEvent, ExpansionEvent, IREvent, JoystickEvent, MotionSensingEvent, WiiUseApiEvent

public abstract class GenericEvent
extends java.lang.Object

Abstract mother class representing an event with a wiimote id.

Author:
guiguito

Field Summary
private  int wiimoteId
           
 
Constructor Summary
GenericEvent(int id)
          Construct the WiiUseApiEvent setting up the id.
 
Method Summary
 int getWiimoteId()
          Get Wiimote ID
(package private)  void setWiimoteId(int wiimoteId)
          Set Wiimote ID
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wiimoteId

private int wiimoteId
Constructor Detail

GenericEvent

public GenericEvent(int id)
Construct the WiiUseApiEvent setting up the id.

Parameters:
id - the Wiimote id
Method Detail

getWiimoteId

public int getWiimoteId()
Get Wiimote ID

Returns:
the wiimote id.

setWiimoteId

void setWiimoteId(int wiimoteId)
Set Wiimote ID

Parameters:
wiimoteId - id of the wiimote

toString

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