Skip to content

Commit

Permalink
Update UserEvent.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Antenehden authored Aug 6, 2024
1 parent 262ee7d commit 93a61be
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions src/main/java/uta/cse3310/UserEvent.java
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
package uta.cse3310;

public class UserEvent {
private PlayerType playerType;
private int id;
private String playerId;
private String action;
private String value;

public UserEvent(PlayerType playerType, int id, String action, String value) {
this.playerType = playerType;
this.id = id;
public UserEvent(String action) {
this.action = action;
this.value = value;
}

public PlayerType getPlayerType() {
return playerType;
}

public int getId() {
return id;
}

public String getPlayerId() {
return playerId;
}

public void setPlayerId(String playerId) {
this.playerId = playerId;
public UserEvent(String action, String value) {
this.action = action;
this.value = value;
}

public String getAction() {
Expand All @@ -46,6 +29,3 @@ public void setValue(String value) {
this.value = value;
}
}



0 comments on commit 93a61be

Please sign in to comment.