26 #ifndef SAGA2_ASSIGN_H 27 #define SAGA2_ASSIGN_H 29 #include "saga2/target.h" 38 enum AssignmentTypes {
39 kPatrolRouteAssignment,
40 kHuntToBeNearLocationAssignment,
41 kHuntToBeNearActorAssignment,
42 kHuntToKillAssignment,
43 kTetheredWanderAssignment,
54 kAFHasAssignment = (1 << 3)
73 virtual int32 archiveSize()
const;
82 virtual void handleTaskCompletion(TaskResult result);
85 virtual bool isValid();
88 Actor *getActor()
const;
91 virtual int16 type()
const = 0;
97 virtual bool taskNeeded();
117 kRouteCompleted = (1 << 0)
134 int32 archiveSize()
const;
143 void handleTaskCompletion(TaskResult result);
161 TargetPlaceHolder _targetMem;
166 void initialize(
const Target &targ, uint16 r);
202 int32 archiveSize()
const;
213 const Target *getTarget()
const {
214 return (
const Target *)_targetMem;
223 TargetPlaceHolder _targetMem;
245 bool trackFlag =
false);
253 bool trackFlag =
false) :
255 assert(isActor(a) && a != getActor());
264 bool trackFlag =
false);
272 bool trackFlag =
false) :
274 initialize(at, r, trackFlag);
281 int32 archiveSize()
const;
302 TargetPlaceHolder _targetMem;
307 kSpecificActor = (1 << 1)
315 bool specificActorFlag);
328 bool trackFlag =
false) :
330 assert(isActor(a) && a != getActor());
338 bool trackFlag =
false);
345 bool trackFlag =
false) :
347 initialize(at, trackFlag,
false);
352 int32 archiveSize()
const;
398 int32 archiveSize()
const;
437 int32 archiveSize()
const;
455 int32 assignmentArchiveSize(
Actor *a);
Definition: memstream.h:194
Definition: tcoords.h:127
Definition: tcoords.h:222
Definition: objects.h:118