diff options
author | Paul Gilbert | 2015-01-05 08:11:16 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-05 08:11:16 -0500 |
commit | ce96094c9bc54266c9742364e656c97446a6ecaf (patch) | |
tree | 618ff200be5941a57b5aa16554ecdfe05df63055 /engines/xeen/party.cpp | |
parent | f9316bf14107c3ac46bd8bb53da9665c3652c381 (diff) | |
download | scummvm-rg350-ce96094c9bc54266c9742364e656c97446a6ecaf.tar.gz scummvm-rg350-ce96094c9bc54266c9742364e656c97446a6ecaf.tar.bz2 scummvm-rg350-ce96094c9bc54266c9742364e656c97446a6ecaf.zip |
XEEN: In progress implementing map loading
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 25366d52ed..ec25f4a71c 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -44,7 +44,7 @@ PlayerStruct::PlayerStruct() { _sex = MALE; _race = HUMAN; _xeenSide = 0; - _class = KNIGHT; + _class = CLASS_KNIGHT; _ACTemp = 0; _dbDay = 0; _tempAge = 0; @@ -302,7 +302,7 @@ void Party::synchronize(Common::Serializer &s) { bool Party::checkSkill(Skill skillId) { uint total = 0; for (uint i = 0; i < _activeParty.size(); ++i) { - if (_activeParty[i]->_skills[skillId]) { + if (_activeParty[i]._skills[skillId]) { ++total; switch (skillId) { @@ -324,6 +324,8 @@ bool Party::checkSkill(Skill skillId) { } } } + + return false; } bool Party::isInParty(int charId) { @@ -335,4 +337,10 @@ bool Party::isInParty(int charId) { return false; } +void Party::copyPartyToRoster(Roster &r) { + for (int i = 0; i < _partyCount; ++i) { + r[_partyMembers[i]] = _activeParty[i]; + } +} + } // End of namespace Xeen |