You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
730 B
34 lines
730 B
package network.Messages;
|
|
|
|
import network.Messages.Enums.BoatActionEnum;
|
|
import network.Messages.Enums.MessageType;
|
|
|
|
/**
|
|
* Represents a BoatAction message.
|
|
*/
|
|
public class BoatAction extends AC35Data {
|
|
|
|
/**
|
|
* The action for this message.
|
|
*/
|
|
private BoatActionEnum boatAction;
|
|
|
|
/**
|
|
* Constructs a BoatActon message with a given action.
|
|
* @param boatAction Action to use.
|
|
*/
|
|
public BoatAction(BoatActionEnum boatAction){
|
|
super(MessageType.BOATACTION);
|
|
this.boatAction = boatAction;
|
|
}
|
|
|
|
/**
|
|
* Returns the action for this message.
|
|
* @return The action for this message.
|
|
*/
|
|
public BoatActionEnum getBoatAction() {
|
|
return boatAction;
|
|
}
|
|
|
|
}
|