diff options
author | Julien Templier | 2010-10-27 19:19:22 +0000 |
---|---|---|
committer | Julien Templier | 2010-10-27 19:19:22 +0000 |
commit | dba75791d9fcda63c546975fa98da4bc64afce7d (patch) | |
tree | 849eda271528992761b24803cdb02cb98639be93 /engines/lastexpress/game/entities.cpp | |
parent | aaf7ffdd5c160447cfa56468bf0a8c768d14ad5d (diff) | |
download | scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.tar.gz scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.tar.bz2 scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.zip |
LASTEXPRESS: Add some missing casts and const qualifiers
svn-id: r53880
Diffstat (limited to 'engines/lastexpress/game/entities.cpp')
-rw-r--r-- | engines/lastexpress/game/entities.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/lastexpress/game/entities.cpp b/engines/lastexpress/game/entities.cpp index feb9057161..40fae3ae9b 100644 --- a/engines/lastexpress/game/entities.cpp +++ b/engines/lastexpress/game/entities.cpp @@ -215,7 +215,7 @@ EntityData::EntityCallData *Entities::getData(EntityIndex entity) const { return _entities[entity]->getData(); } -int Entities::getPosition(CarIndex car, Position position) { +int Entities::getPosition(CarIndex car, Position position) const { int index = 100 * car + position; if (car > 10) @@ -227,14 +227,14 @@ int Entities::getPosition(CarIndex car, Position position) { return _positions[index]; } -int Entities::getCompartments(int index) { +int Entities::getCompartments(int index) const { if (index >= _compartmentsCount) error("Entities::getCompartments: trying to access an invalid compartment (was: %d, valid:0-15)", index); return _compartments[index]; } -int Entities::getCompartments1(int index) { +int Entities::getCompartments1(int index) const { if (index >= _compartmentsCount) error("Entities::getCompartments: trying to access an invalid compartment (was: %d, valid:0-15)", index); @@ -1993,7 +1993,7 @@ bool Entities::hasValidFrame(EntityIndex entity) const { return (getData(entity)->frame && (getData(entity)->frame->getInfo()->subType != kFrameType3)); } -bool Entities::compare(EntityIndex entity1, EntityIndex entity2) { +bool Entities::compare(EntityIndex entity1, EntityIndex entity2) const { EntityData::EntityCallData *data1 = getData(entity1); EntityData::EntityCallData *data2 = getData(entity2); @@ -2051,7 +2051,7 @@ bool Entities::compare(EntityIndex entity1, EntityIndex entity2) { return false; } -bool Entities::updateEntity(EntityIndex entity, CarIndex car, EntityPosition position) { +bool Entities::updateEntity(EntityIndex entity, CarIndex car, EntityPosition position) const { EntityData::EntityCallData *data = getData(entity); EntityDirection direction = kDirectionNone; int delta = 0; |