Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DyingState implements State {
- @Override
- public void describe(Nea nea) {
- if (nea.getHp() == Hp.DYING) {
- System.out.println("---當前狀態描述:"
- + nea.getClass().getSimpleName() + "倒地只能爬行等待其他人類救援!---");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement