Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Classes:
  2.  
  3. human:
  4. - punya hp
  5. - punya attack
  6. - punya name
  7.  
  8. 1. warrior (is a human)
  9. - punya attack multiplier X, jadi 1 serangannya X * attack
  10.  
  11. 2. mage (is a human)
  12. - attack powernya jadi healing power
  13.  
  14. 3. Rogue(is a human)
  15.  
  16.  
  17. interaction:
  18. 1. warrior:
  19. - Ketemu warrior lain atau rogue: diserang
  20. - Ketemu mage: di heal (+hp)
  21.  
  22. 2. mage:
  23. - Ketemu warrior atau rogue: ga diapa-apain
  24. - Ketemu mage lain: diserang
  25.  
  26. 3. rogue:
  27. - Ketemu warrior: ga diapa-apain
  28. - Ketemu mage: di heal (+hp)
  29. - Ketemu rogue lain: diserang.
  30.  
  31. 3. mage A ketemu mage B:
  32. mage A: diserang mage b
  33.  
  34. Flow:
  35. Ada 3 operasi:
  36. 1. add character (name, class, hp, attack)
  37. 2. interact character A, character B. (A, B = namanya)
  38. 3. print info character A (A = namanya)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement