------------------------------------------- INTERFACE EVENT UPDATE ---------------------------------------
| 231 | } |
| 232 | //------------------------------------------- INTERFACE EVENT UPDATE --------------------------------------- |
| 233 | void GameImpl::processInterfaceEvents() |
| 234 | { |
| 235 | // GameImpl events |
| 236 | this->updateEvents(); |
| 237 | |
| 238 | // UnitImpl events |
| 239 | for(Unit u : this->accessibleUnits) |
| 240 | { |
| 241 | u->exists() ? u->updateEvents() : u->interfaceEvents.clear(); |
| 242 | } |
| 243 | |
| 244 | // ForceImpl events |
| 245 | for (Force f : this->forces) |
| 246 | f->updateEvents(); |
| 247 | |
| 248 | // BulletImpl events |
| 249 | for (Bullet b : this->bullets) |
| 250 | { |
| 251 | b->exists() ? b->updateEvents() : b->interfaceEvents.clear(); |
| 252 | } |
| 253 | |
| 254 | // RegionImpl events |
| 255 | for (Region r : this->regionsList) |
| 256 | r->updateEvents(); |
| 257 | |
| 258 | // PlayerImpl events |
| 259 | for (Player p : this->playerSet) |
| 260 | p->updateEvents(); |
| 261 | } |
| 262 | //------------------------------------------- GET PLAYER INTERNAL ------------------------------------------ |
| 263 | PlayerImpl *GameImpl::_getPlayer(int id) |
| 264 | { |
no test coverage detected