Skip to content

Entities Behaviours

Èric Canela edited this page Dec 11, 2019 · 5 revisions

Citizens

Citizen
  • Citizen Will Go to the Reception
  • If other Citizen is currently on the Reception he will go and Wait on the Waiting Room
  • When it is his turn it will go to the Reception
  • When he has finished giving the task to the Police he will leave the Building

Behaviour Tree

Police

Policeman
  • Will go to the Desk to start Investigating a case
  • When it has finished, it will check if there is any criminal to liberate
  • If not, it will exit the building to chase the criminal
  • If the policeman has arrested a Criminal he will escort him to a Cell
  • At night if he doesn't need to patrol, will go Home
  • While Patrolling if he finds a criminal escaping, he will fight him (Also if it is the morning and a criminal was escaping the night before)
  • If the attack is a success, will escort the criminal to the Cell
  • If he was patrolling, the next morning it will go Home to sleep

Behaviour Tree

Criminals

Criminal
  • If the Criminal is arrested, it will be escorted to the Cell
  • He will wait in the cell for an ammount of time
  • If it is the Morning, he will wait until a police liberates and escort him to the Exit
  • If it is Night and has Waited enough time, he will escape the cell
  • If he is detected he will try to attack the police
  • He will return to the Cell if he doesn't succeeds on the attack

Behaviour Tree

Clone this wiki locally