Files
Party-Parrots-At-Sea/src/main/java/seng302/models/stream/packets/BoatActionPacket.java
T
Kusal Ekanayake 5ce34bed92 Key presses now assigned to enum and empty packet class is constructed.
#pair[kre39,zyt10] #story[988]
2017-07-13 14:35:41 +12:00

19 lines
398 B
Java

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));
}
}