Skip to content

Commit

Permalink
LASTEXPRESS: Move RESET_ENTITY_STATE macro to entity.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Templier committed Jul 27, 2012
1 parent 7974b62 commit 7450ae2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions engines/lastexpress/entities/entity.h
Expand Up @@ -94,6 +94,14 @@ struct SavePoint;
#define ENTITY_PARAM(index, id) \
((EntityData::EntityParametersIIII*)_data->getParameters(8, index))->param##id

//////////////////////////////////////////////////////////////////////////
// Misc
//////////////////////////////////////////////////////////////////////////
#define RESET_ENTITY_STATE(entity, class, function) \
getEntities()->resetState(entity); \
((class *)getEntities()->get(entity))->function();



//////////////////////////////////////////////////////////////////////////
class EntityData : Common::Serializable {
Expand Down
7 changes: 0 additions & 7 deletions engines/lastexpress/entities/entity_intern.h
Expand Up @@ -259,13 +259,6 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%d, %d, %s, %s) - action: %s", params->param1, params->param2, (char *)&params->seq1, (char *)&params->seq2, ACTION_NAME(savepoint.action));


//////////////////////////////////////////////////////////////////////////
// Misc
//////////////////////////////////////////////////////////////////////////
#define RESET_ENTITY_STATE(entity, class, function) \
getEntities()->resetState(entity); \
((class *)getEntities()->get(entity))->function();

//////////////////////////////////////////////////////////////////////////
// Time check macros
//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 7450ae2

Please sign in to comment.