Wartbed:Manual/Targets and Orders
From Dark Omen Wiki
This article discusses
- Target: A class that stores a reference to a Model or a position.
- Order: A class that represents an instruction that can be sent to a Model.
- order::Queue: A class that implements a stack-like store of Orders for an Actor
Target
Target is a class that points to an Model or stores a position, and also keeps an optional offset. It is used to represent the goal of any Order that refers to a location or entity.
Overview of Actors and Orders
- Actors have an order::Queue member object, which is a stack of Orders.
- Actors have an OBJECTIVES member map, which is a set of Targets.
- Orders can
- reassign the current objectives of an Actor
- modify some behavioural dispositions of an Actor
Example Orders
- MoveTo( Position or mvc::Model )
- Protect( Position or mvc::Model )
- Escort( mvc::Model )
- Attack( Position or mvc::Model )