Guest User

Untitled

a guest
Sep 11th, 2019
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class DyingState implements State {
  2.  
  3. @Override
  4. public void describe(Nea nea) {
  5. if (nea.getHp() == Hp.DYING) {
  6. System.out.println("---當前狀態描述:"
  7. + nea.getClass().getSimpleName() + "倒地只能爬行等待其他人類救援!---");
  8. }
  9. }
  10. }
RAW Paste Data