Wartbed:Manual/Targets and Orders
From Dark Omen Wiki
(Difference between revisions)
(+stub, more about Target) |
|||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
+ | |||
+ | <div style="margin:1em; border: 1px solid gray; background:lightgray;"><div style="background:gray;">'''This article discusses'''</div> | ||
+ | <div style="padding:1em; "> | ||
+ | * '''<tt>Target</tt>''': A class that stores a reference to a Model or a position. | ||
+ | * '''<tt>Order</tt>''': A class that represents an instruction that can be sent to a Model. | ||
+ | * '''<tt>order::Queue</tt>''': A class that implements a stack-like store of Orders for an Actor | ||
+ | </div></div> | ||
==Target== | ==Target== |
Revision as of 15:40, 24 January 2010
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 )