26 #ifndef SAGA2_MISSION_H 27 #define SAGA2_MISSION_H 29 #include "saga2/objects.h" 43 #include "common/pack-start.h" 60 uint8 missionVars[32];
63 ObjectID missionObjectList[32];
71 #include "common/pack-end.h" 75 friend void initMissions();
76 friend void cleanupMissions();
83 static ActiveMission *newMission(ObjectID genID, uint16 script);
84 static int findMission(ObjectID genID);
92 bool spaceForObject() {
93 return _data.numObjectIDs <
ARRAYSIZE(_data.missionObjectList);
97 bool addObjectID(ObjectID objID);
100 bool removeObjectID(ObjectID objID);
103 bool addKnowledgeID(ObjectID actor, uint16 knowledgeID);
106 bool removeKnowledgeID(ObjectID actor, uint16 knowledgeID);
108 int16 getMissionID() {
109 return _data.missionID;
113 return _data.missionScript;
124 inline void cleanupMissions() { }
#define ARRAYSIZE(x)
Definition: util.h:91
Definition: savefile.h:54
Definition: memstream.h:194