package dungeonmania.entities.playerState;
import dungeonmania.entities.Player;
Copyright By PowCoder代写 加微信 powcoder
public abstract class PlayerState {
private Player player;
private boolean isInvincible = false;
private boolean isInvisible = false;
PlayerState(Player player, boolean isInvincible, boolean isInvisible) {
this.player = player;
this.isInvincible = isInvincible;
this.isInvisible = isInvisible;
public boolean isInvincible() {
return isInvincible;
public boolean isInvisible() {
return isInvisible;
public Player getPlayer() {
return player;
public abstract void transitionInvisible();
public abstract void transitionInvincible();
public abstract void transitionBase();
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com