mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Key presses now assigned to enum and empty packet class is constructed.
#pair[kre39,zyt10] #story[988]
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user