Guest User

Untitled

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. # Design
  2.  
  3. ## Actor
  4. |
  5. |
  6. |---> Unit_States (Interfaces: Includes both Soldiers and Villagers)
  7. | |----------> Attack_State
  8. | |----------> Move_State
  9. | |----------> Idle_State
  10. | |----------> Dead_State
  11. |
  12. |---> Factory_States (Interfaces)
  13. | |----------> Build_State
  14. | |----------> Idle_State
  15. | |----------> Produce_State
  16. |
  17. |---> Actor (Class)
  18. | |----------> id
  19. | |----------> increment_id
  20. | |----------> player_id
  21. | |----------> hp
  22. | |----------> max_hp
  23. | |----------> position
  24. | |----------> actor_type
  25. |
  26. |---> Unit (Class: public Actor)
  27. | |----------> unit_type
  28. | |----------> unit_state
  29. | |----------> speed
  30. | |----------> attack_range
  31. | |----------> attack_damage
  32. | |----------> attack_target
  33. | |----------> destination
  34. | |----------> is_destination_set
  35. | |----------> new_position
  36. |
  37. |---> Factory (Class: public Actor)
  38. |----------> factory_type (factory_type: [VILLAGER, SOLDIER])
  39. |----------> factory_state (factory_state: [BUILD, IDLE, PRODUCE])
  40. |----------> build_rate (double: Build percent increase per unit per move)
  41. |----------> build_rate_limit (double: Max rate at which build can be done)
  42. |----------> build_percent (double: Percentage of build complete)
  43. |----------> is_complete (bool: If build is complete)
  44. |----------> spawn_timer (time_t: Time taken to spawn a single unit)
Add Comment
Please, Sign In to add comment