22 #ifndef LASTEXPRESS_SAVEPOINT_H 23 #define LASTEXPRESS_SAVEPOINT_H 25 #include "lastexpress/helpers.h" 26 #include "lastexpress/shared.h" 28 #include "common/array.h" 29 #include "common/list.h" 30 #include "common/serializer.h" 52 class LastExpressEngine;
64 entity1 = kEntityPlayer;
66 entity2 = kEntityPlayer;
68 param.charValue[6] = 0;
72 return Common::String::format(
"{ %s - %d - %s - %s }", ENTITY_NAME(entity1), action, ENTITY_NAME(entity2), param.charValue);
88 entity1 = kEntityPlayer;
90 entity2 = kEntityPlayer;
95 return Common::String::format(
" { %s - %d - %s - %d }", ENTITY_NAME(entity1), action, ENTITY_NAME(entity2), param);
103 void push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, uint32 param = 0);
104 void push(EntityIndex entity2, EntityIndex entity1, ActionIndex action,
const Common::String param);
105 void pushAll(EntityIndex entity, ActionIndex action, uint32 param = 0);
110 void addData(EntityIndex entity, ActionIndex action, uint32 param);
113 void setCallback(EntityIndex index, Callback *callback);
114 Callback *getCallback(EntityIndex entity)
const;
115 void call(EntityIndex entity2, EntityIndex entity1, ActionIndex action, uint32 param = 0)
const;
116 void call(EntityIndex entity2, EntityIndex entity1, ActionIndex action,
const Common::String param)
const;
117 void callAndProcess();
129 uint32 count() {
return _savepoints.size(); }
132 static const uint32 _savePointsMaxSize = 128;
138 Callback *_callbacks[40];
141 bool updateEntityFromData(
const SavePoint &point);
146 #endif // LASTEXPRESS_SAVEPOINT_H
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
Definition: savepoint.h:78
Definition: lastexpress.h:69
Definition: animation.h:45
Definition: serializer.h:79
Definition: savepoint.h:54
Definition: savepoint.h:81
Definition: serializer.h:308