Key presses now assigned to enum and empty packet class is constructed.

#pair[kre39,zyt10] #story[988]
This commit is contained in:
Kusal Ekanayake
2017-07-13 14:35:41 +12:00
parent ef61a687d6
commit 5ce34bed92
3 changed files with 70 additions and 13 deletions
@@ -0,0 +1,18 @@
package seng302.models.stream.packets;
/**
* Created by kre39 on 12/07/17.
*/
public class BoatActionPacket {
BoatActionType actionType;
public BoatActionPacket(BoatActionType actionType) {
this.actionType = actionType;
}
// Sends the packet to the server
public void sendPacket(){
System.out.println(BoatActionType.getBoatPacketType(actionType));
}
}