game-client

Play TicTacToe and Reversi
Log | Files | Refs

Event.java (290B)


      1 package nl.isygameclient.network;
      2 
      3 public class Event {
      4 	public final EventType type;
      5 	public final Object	   data;
      6 
      7 	public Event(EventType type, Object data) {
      8 		this.type = type;
      9 		this.data = data;
     10 	}
     11 
     12 	public String toString() {
     13 		return String.format("Event.%s(%s)", type, data);
     14 	}
     15 }