Inheritance diagram for ServerReader:
Public Member Functions | |
(id) | - initWithUniverse:communication: |
(NSData *) | - doRead |
(void) | - close |
(void) | - readFromServer |
(bool) | - handlePacket:withSize:inBuffer: |
(int) | - shortFromPacket |
(NSString *) | - stringFromBuffer:startFrom:maxLength: |
Protected Attributes | |
bool | motd_done |
ShortPacketWarningHandler * | swarningHandler |
LLNotificationCenter * | notificationCenter |
Universe * | universe |
Communication * | communication |
Definition at line 137 of file ServerReader.h.
- (bool) handlePacket: | (int) | ptype | ||
withSize: | (int) | size | ||
inBuffer: | (char *) | buffer | ||
handlePacket
Definition at line 1045 of file ServerReader.m.
References Team::abbreviation, Team::addPlanet:, PingStats::calculateLag, FeatureList::checkFeature:withType:withArg1:withArg2:withValue:, communication, Player::decreasePlasmaCount, Player::decreaseTorpCount, Communication::featureList, Player::flags, Communication::ghostSlot, ShortPacketWarningHandler::handleSWarning:, Player::increasePlasmaCount, Player::increaseTorpCount, Player::mapChars, Ship::maxPhaserFuse, motd_done, Universe::movePlanet:toTeam:, Universe::movePlayer:toTeam:, notificationCenter, Weapon::owner, Universe::phaserWithId:, Communication::pingStats, Universe::planetWithId:, Universe::plasmaWithId:, Universe::playerThatIsMe, Universe::playerWithId:, LLNotificationCenter::postNotificationName:object:userInfo:, PlayerStats::rank, Universe::remappedTeamIdWithId:, Planet::setArmies:, Player::setExplode:, Player::setFlags:, PlayerStats::setFlags:, Planet::setFlags:, Entity::setFuse:, Ship::setHeight:, Player::setHostile:, PingStats::setIncrementalLossServerToClient:ClientToServer:, Planet::setInfo:, Player::setKills:, PingStats::setLag:, Player::setLogin:, Ship::setMaxArmies:, Ship::setMaxDamage:, Ship::setMaxEngineTemp:, Ship::setMaxFuel:, Entity::setMaxFuse:, PlayerStats::setMaxKills:, Ship::setMaxShield:, Ship::setMaxSpeed:, Ship::setMaxWeaponTemp:, Player::setMonitor:, Planet::setName:, Player::setName:, Planet::setNeedsDisplay:, Entity::setNetrekFormatCourse:, Status::setObserver:, Ship::setPhaserDamage:, Communication::setPing:withResponse:, Entity::setPosition:, Weapon::setPreviousStatus:, Status::setPromoted:, PlayerStats::setRankWithId:, Communication::setReceiveShort:, Player::setShip:, Communication::setShortVersion:, Entity::setSpeed:, PlayerStats::setStarbaseTicks:, Player::setStatus:, Weapon::setStatus:, Player::setStickyWar:, Phaser::setTarget:, Player::setTeam:, Ship::setTorpSpeed:, PingStats::setTotalLossServerToClient:ClientToServer:, Weapon::setWar:, Ship::setWidth:, Universe::shipOfType:, Universe::shipWithPhaserId:, shortFromPacket, Player::stats, Universe::status, stringFromBuffer:startFrom:maxLength:, swarningHandler, Player::team, Universe::teamWithId:, Universe::torpWithId:, universe, Player::updateDamage:shieldStrenght:fuel:engineTemp:weaponsTemp:thisIsMe:, Player::updateHostile:stickyWar:armies:flags:damage:shieldStrenght:fuel:engineTemp:weaponsTemp:whyDead:whoKilledMe:thisIsMe:, Player::updateHostile:stickyWar:armies:flags:whyDead:whoKilledMe:thisIsMe:, Status::updateTournament:armiesBombed:planetsTaken:kills:losses:time:timeProd:, and PlayerStats::updateTournamentKills:tournamentLosses:kills:losses:tournamentTicks:tournamentPlanets:tournamentArmiesBombed:starbaseKills:starbaseLosses:armiesBombed:planets:starbaseMaxKills:.
Referenced by readFromServer.
Here is the call graph for this function:
- (int) shortFromPacket | (char *) | buffer | ||
(int) | offset | |||
shortFromPacket
Definition at line 332 of file ServerReader.m.
Referenced by handlePacket:withSize:inBuffer:.