reorganized files and a part of the architecture.

This version needs to be tested.
Don't forget to add comments.

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@64 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-02-29 00:25:40 +00:00
parent 821d9d837e
commit d8b72061eb
15 changed files with 447 additions and 112 deletions

View File

@@ -1,24 +1,14 @@
package wiiusej.wiiuseapievents;
public abstract class WiiUseApiEvent {
public abstract class WiiUseApiEvent extends WiimoteEvent{
public static int GENERIC_EVENT = 1;
public static int STATUS_EVENT = 2;
public static int DISCONNECTION_EVENT = 3;
public static int DISCONNECTION_EVENT = 3;
/* Event Type */
private int eventType;
/* ID */
private int wiimoteId = -1;
/**
* Default constructor.
*/
public WiiUseApiEvent(){
}
/**
* Construct the WiiUseApiEvent setting up the id.
*
@@ -28,31 +18,9 @@ public abstract class WiiUseApiEvent {
* type of the event
*/
public WiiUseApiEvent(int id, int type) {
wiimoteId = id;
super(id);
eventType = type;
}
/**
* Get Wiimote ID
*
* @return the wiimote id.
*/
public int getWiimoteId() {
return wiimoteId;
}
/**
* Set Wiimote ID
*
* @param wiimoteId
* id of the wiimote
*/
void setWiimoteId(int wiimoteId) {
this.wiimoteId = wiimoteId;
}
}
/**
* Get the event type.
@@ -61,8 +29,7 @@ public abstract class WiiUseApiEvent {
public int getEventType() {
return eventType;
}
public abstract String toString();
public abstract String toString();
}