Wartbed:Manual/Targets and Orders
From Dark Omen Wiki
(Difference between revisions)
(Created page with '* <tt>Actors</tt> have an <tt>order::Queue</tt> member object, which is a stack of <tt>Order</tt>s. * <tt>Actors</tt> have an <tt>OBJECTIVES</tt> member map, which is a set of <t...') |
(+stub, more about Target) |
||
Line 1: | Line 1: | ||
+ | {{stub}} | ||
+ | |||
+ | ==Target== | ||
+ | <tt>Target</tt> is a class that points to an <tt>Model</tt> or stores a position, and also keeps an optional offset. It is used to represent the goal of any <tt>Order</tt> that refers to a location or entity. | ||
+ | |||
+ | ==Overview of Actors and Orders== | ||
* <tt>Actors</tt> have an <tt>order::Queue</tt> member object, which is a stack of <tt>Order</tt>s. | * <tt>Actors</tt> have an <tt>order::Queue</tt> member object, which is a stack of <tt>Order</tt>s. | ||
* <tt>Actors</tt> have an <tt>OBJECTIVES</tt> member map, which is a set of <tt>Target</tt>s. | * <tt>Actors</tt> have an <tt>OBJECTIVES</tt> member map, which is a set of <tt>Target</tt>s. | ||
- | * <tt>Orders</tt> reassign the current <tt>objectives</tt> of an | + | * <tt>Orders</tt> can |
+ | ** reassign the current <tt>objectives</tt> of an Actor | ||
+ | ** modify some behavioural dispositions of an Actor | ||
==Example <tt>Order</tt>s== | ==Example <tt>Order</tt>s== | ||
- | |||
* MoveTo( Position or mvc::Model ) | * MoveTo( Position or mvc::Model ) | ||
* Protect( Position or mvc::Model ) | * Protect( Position or mvc::Model ) |
Revision as of 20:24, 20 January 2010
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 )