aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/ai
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/ai')
-rwxr-xr-xengines/pegasus/ai/ai_area.cpp8
-rwxr-xr-xengines/pegasus/ai/ai_area.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/pegasus/ai/ai_area.cpp b/engines/pegasus/ai/ai_area.cpp
index 0b7e435043..8a135ed381 100755
--- a/engines/pegasus/ai/ai_area.cpp
+++ b/engines/pegasus/ai/ai_area.cpp
@@ -79,6 +79,14 @@ void AIArea::restoreAIState() {
// TODO
}
+void AIArea::writeAIRules(Common::WriteStream *stream) {
+ _AIRules.writeAIRules(stream);
+}
+
+void AIArea::readAIRules(Common::ReadStream *stream) {
+ _AIRules.readAIRules(stream);
+}
+
void AIArea::initAIArea() {
allocateSurface(Common::Rect(0, 0, 384, 96));
diff --git a/engines/pegasus/ai/ai_area.h b/engines/pegasus/ai/ai_area.h
index 0338f2b96c..7387b4081b 100755
--- a/engines/pegasus/ai/ai_area.h
+++ b/engines/pegasus/ai/ai_area.h
@@ -31,6 +31,11 @@
#include "pegasus/timers.h"
#include "pegasus/ai/ai_rule.h"
+namespace Common {
+ class ReadStream;
+ class WriteStream;
+}
+
/*
The AI area is the area at the bottom of the screen. There are three areas within
@@ -80,6 +85,9 @@ public:
AIArea(InputHandler *);
virtual ~AIArea();
+ void writeAIRules(Common::WriteStream *stream);
+ void readAIRules(Common::ReadStream *stream);
+
void initAIArea();
void saveAIState();