From 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 6 Sep 2008 04:12:30 +0000 Subject: [FIX] Renamed everything (in use) away from Poké- prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigbattle/ATBTimer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sigbattle/ATBTimer.cpp') diff --git a/sigbattle/ATBTimer.cpp b/sigbattle/ATBTimer.cpp index d2f42ce2..874c6fb8 100644 --- a/sigbattle/ATBTimer.cpp +++ b/sigbattle/ATBTimer.cpp @@ -18,7 +18,7 @@ // Header include #include "ATBTimer.h" -// Pokebattle includes +// Sigbattle includes #include "ATBArena.h" // Qt includes @@ -31,7 +31,7 @@ // STL includes #include -Pokebattle::ATBTimer::ATBTimer(ATBArena* arena, ActionQueue& actions) : +Sigbattle::ATBTimer::ATBTimer(ATBArena* arena, ActionQueue& actions) : QThread(arena), m_arena(arena), m_actions(actions), @@ -40,12 +40,12 @@ Pokebattle::ATBTimer::ATBTimer(ATBArena* arena, ActionQueue& actions) : connect(m_timer, SIGNAL(timeout()), this, SLOT(update())); } -void Pokebattle::ATBTimer::update() +void Sigbattle::ATBTimer::update() { const QList active = m_timeStates.keys(); - QtConcurrent::blockingMap(active, std::bind1st(std::mem_fun(&Pokebattle::ATBTimer::increaseMeter), this)); + QtConcurrent::blockingMap(active, std::bind1st(std::mem_fun(&Sigbattle::ATBTimer::increaseMeter), this)); // TODO: adjust max time if needed - QList overflow = QtConcurrent::blockingFiltered(active, std::bind1st(std::mem_fun(&Pokebattle::ATBTimer::isOverflowed), this)); + QList overflow = QtConcurrent::blockingFiltered(active, std::bind1st(std::mem_fun(&Sigbattle::ATBTimer::isOverflowed), this)); QMultiMap sorter; foreach (TeamMember* teamMember, overflow) sorter.insert(m_timeStates[teamMember], teamMember); @@ -54,19 +54,19 @@ void Pokebattle::ATBTimer::update() m_actions.enqueue(requestDecision(teamMember)); } -void Pokebattle::ATBTimer::run() +void Sigbattle::ATBTimer::run() { m_timer->start(50); exec(); } -void Pokebattle::ATBTimer::increaseMeter(const TeamMember* teamMember) +void Sigbattle::ATBTimer::increaseMeter(const TeamMember* teamMember) { // TODO: tweak this(?) - m_timeStates[const_cast(teamMember)] += teamMember->statValue(Pokemod::ST_Speed) / 10; + m_timeStates[const_cast(teamMember)] += teamMember->statValue(Sigmod::ST_Speed) / 10; } -bool Pokebattle::ATBTimer::isOverflowed(const TeamMember* teamMember) const +bool Sigbattle::ATBTimer::isOverflowed(const TeamMember* teamMember) const { return m_threshold < m_timeStates[const_cast(teamMember)]; } -- cgit