diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
commit | 342d0201b07d9030fced2f3baf3ecdefc841879a (patch) | |
tree | f0715cc7b267e2ce2bc93971d9e95c7e0c9b2b62 /battle/Team.cpp | |
parent | d017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff) | |
download | sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.gz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.xz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.zip |
[DEL] Removed PokeGen namespace
[ADD] general/AudioCache.h completed
[DEL] VERSION removed from subdir .pro files
[DEL] audio/
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@33 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'battle/Team.cpp')
-rw-r--r-- | battle/Team.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/battle/Team.cpp b/battle/Team.cpp index 2045d683..9bdc57f4 100644 --- a/battle/Team.cpp +++ b/battle/Team.cpp @@ -22,19 +22,19 @@ #include "Team.h" -PokeGen::Battle::Team::Team(PokeMod::Pokemod* par) : +Team::Team(const PokeMod::Pokemod& par) : active(0), parent(par) { } -void PokeGen::Battle::Team::AddItem(const unsigned i, const unsigned amt) +void Team::AddItem(const unsigned i, const unsigned amt) { if (amt) items[i] = amt; } -void PokeGen::Battle::Team::UseItem(const unsigned i) +void Team::UseItem(const unsigned i) { if (items.contains(i) && (items[i] != UINT_MAX)) { @@ -44,12 +44,12 @@ void PokeGen::Battle::Team::UseItem(const unsigned i) } } -void PokeGen::Battle::Team::AddPokemon(Pokemon& p) +void Team::AddPokemon(Pokemon& p) { pokemon.append(&p); } -void PokeGen::Battle::Team::SwapPokemon(const unsigned a, const unsigned b) +void Team::SwapPokemon(const unsigned a, const unsigned b) { if ((a < pokemon.size()) && (b < pokemon.size())) { @@ -59,13 +59,13 @@ void PokeGen::Battle::Team::SwapPokemon(const unsigned a, const unsigned b) } } -bool PokeGen::Battle::Team::SetActivePokemon(const unsigned a) +bool Team::SetActivePokemon(const unsigned a) { if ((a < pokemon.size()) && pokemon[a]->CanFight()) active = a; } -unsigned PokeGen::Battle::Team::CanFight() const +unsigned Team::CanFight() const { unsigned alive = 0; for (unsigned i = 0; (i < pokemon.size()) && !alive; ++i) |