6. Tasks

To execute a job a creep takes it needs to use tasks to finish it.

The following features will be included: - Movement - Work - Defense

6.1. Function list

Name

Description

a

b

6.2. How is it going to work?

6.2.1. Movement

There will be one function with 2 outputs. Its a InRoomMovement or OutOfRoomMovement based on if a room name parameter will be included.

Specific logic will be added to each function so it will be easier to debug specific functions.

6.2.2. Work actions

A function to:

  • Repair

  • Harvest

  • Build

  • Upgrade

  • Dismantle

Specific logic will be added to each function so it will be easier to debug specific functions.

6.2.3. Defense

A function to:

  • Heal

  • Attack

  • RangedAttack

Specific logic will be added to each function so it will be easier to debug specific functions.