package pp.mdga.notification; import pp.mdga.game.Color; /** * Class TskSelectNotification */ public class TskSelectNotification extends Notification{ private Color color; private String name; private boolean self; /** * Constructor. * @param color the color of the player that is in the game. * @param name the name of the player that is in the game. * @param self true if it was the local player selecting the tsk, false otherwise */ TskSelectNotification(Color color, String name, boolean self) { this.color = color; this.name = name; this.self = self; } /** * Get the color of the player that is in the game. * @return the color of the player that is in the game. */ public Color getColor() { return color; } /** * Get the name of the player that is in the game. * @return the name of the player that is in the game. */ public String getName() { return name; } /** * Tells if it was the local player selecting this tsk. * @return ture if it was the local player selecting the tsk. */ public boolean isSelf() { return self; } }