辅导VGP113程序设计、辅导c++,Java编程、Python语言编程辅导
辅导留学生 Statistics统计、回归、迭代|辅导R语言编程
VGP113 - UML AND OBJECT-ORIENTED DESIGN
Sixth deliverable – State Machine Diagram
• Model the State Machine diagram of a unit that builds attack turrets:
The Unit will be Idle until a command to build is issued to it
Once the command is issued, the unit enters the Move state
and goes to its destination
Once it reaches its destination, it will check surroundings for
enemies
If there are enemies, it will enter the Combat state where
it will shoot at them until they’re all dead. Assume this unit
is OP so it’s invincible and one shots other units.
If not, It goes to Build
When the area is clear, it goes to Build state and builds the
attack turret.
Once finished, it dies