/dports/games/ksnakeduel/ksnakeduel-21.12.3/src/ |
H A D | intelligence.cpp | 112 void Intelligence::think(int playerNr) in think() argument 116 int opponent=(playerNr==1)? 0 : 1; in think() 130 switch (m_tron->getPlayer(playerNr)->getDirection()) in think() 319 changeDirection(playerNr,dis_right,dis_left); in think() 329 changeDirection(playerNr,dis_right,dis_left); in think() 366 changeDirection(playerNr,dis_right,dis_left); in think() 380 changeDirection(playerNr,dis_right,dis_left); in think() 424 changeDirection(playerNr,dis_right,dis_left); in think() 447 changeDirection(playerNr,dis_right,dis_left); in think() 482 changeDirection(playerNr,dis_right,dis_left); in think() [all …]
|
H A D | tron.cpp | 162 Player *Tron::getPlayer(int playerNr) in getPlayer() argument 164 if (playerNr != 0 && playerNr != 1) in getPlayer() 166 qCDebug(KSNAKEDUEL_LOG) << "Inexistent player requested: " << playerNr; in getPlayer() 170 return players[playerNr]; in getPlayer()
|
/dports/games/maxr/maxr-0.2.9/src/game/logic/ |
H A D | casualtiestracker.cpp | 40 int playerNr = 0; in initFromXML() local 52 setCasualty (unitID, losses, playerNr); in initFromXML() 90 void cCasualtiesTracker::logCasualty (sID unitType, int playerNr) in logCasualty() argument 92 setCasualty (unitType, getCasualtiesOfUnitType (unitType, playerNr) + 1, playerNr); in logCasualty() 102 vector<Casualty>& casualties = getCasualtiesOfPlayer (playerNr); in setCasualty() 208 const int playerNr = message->popInt16(); in updateCasualtiesFromNetMessage() local 214 setCasualty (unitType, numberLosses, playerNr); in updateCasualtiesFromNetMessage() 233 const int currentPlayer = casualtiesPerPlayer[i].playerNr; in prepareNetMessagesForClient() 277 if (casualtiesPerPlayer[i].playerNr == playerNr) in getCasualtiesOfPlayer() 282 newCasualtiesOfPlayer.playerNr = playerNr; in getCasualtiesOfPlayer() [all …]
|
H A D | casualtiestracker.h | 42 void logCasualty (sID unitType, int playerNr); 43 int getCasualtiesOfUnitType (sID unitType, int playerNr) const; 62 int playerNr; member 66 std::vector<Casualty>& getCasualtiesOfPlayer (int playerNr) const; 67 void setCasualty (sID unitType, int numberOfLosses, int playerNr);
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ |
H A D | battlecontrols.c | 59 COUNT playerNr) in InputContext_init() argument 62 context->playerNr = playerNr; in InputContext_init() 72 ComputerInputContext_new (COUNT playerNr) in ComputerInputContext_new() argument 76 &ComputerInputHandlers, playerNr); in ComputerInputContext_new() 81 HumanInputContext_new (COUNT playerNr) in HumanInputContext_new() argument 85 &HumanInputHandlers, playerNr); in HumanInputContext_new() 91 NetworkInputContext_new (COUNT playerNr) in NetworkInputContext_new() argument 95 &NetworkInputHandlers, playerNr); in NetworkInputContext_new()
|
H A D | battlecontrols.h | 54 COUNT playerNr; 77 ComputerInputContext *ComputerInputContext_new (COUNT playerNr); 78 HumanInputContext *HumanInputContext_new (COUNT playerNr); 80 NetworkInputContext *NetworkInputContext_new (COUNT playerNr); 89 COUNT playerNr);
|
H A D | intel.c | 46 if (StarShipPtr->playerNr == RPG_PLAYER_NUM) in computer_intelligence() 48 context->playerNr) & BATTLE_ESCAPE; in computer_intelligence() 51 InputState = CurrentInputToBattleInput (context->playerNr); in computer_intelligence() 53 else if (!(PlayerControl[context->playerNr] & PSYTRON_CONTROL)) in computer_intelligence()
|
H A D | status.c | 191 assert (StarShipPtr->playerNr >= 0); in DrawCaptainsWindow() 192 y_offs = status_y_offsets[StarShipPtr->playerNr]; in DrawCaptainsWindow() 266 && StarShipPtr->playerNr == RPG_PLAYER_NUM) in DrawCaptainsWindow() 340 && ElementPtr->playerNr == NPC_PLAYER_NUM) in DeltaCrew() 367 DeltaStatistics (ShipInfoPtr, status_y_offsets[StarShipPtr->playerNr], in DeltaCrew() 380 || StarShipPtr->playerNr == RPG_PLAYER_NUM) in PreProcessStatus() 393 assert (StarShipPtr->playerNr >= 0); in PreProcessStatus() 394 CaptainsWindow (CSPtr, status_y_offsets[StarShipPtr->playerNr], in PreProcessStatus() 407 || StarShipPtr->playerNr == RPG_PLAYER_NUM) in PostProcessStatus() 414 assert (StarShipPtr->playerNr >= 0); in PostProcessStatus() [all …]
|
H A D | element.h | 118 SIZE playerNr; member 175 return ElementPtr0->playerNr == ElementPtr1->playerNr; in elementsOfSamePlayer()
|
H A D | encount.c | 92 GetShipFragQueueForPlayer (COUNT playerNr) in GetShipFragQueueForPlayer() argument 94 if (playerNr == RPG_PLAYER_NUM) in GetShipFragQueueForPlayer() 153 BuiltShipPtr->playerNr = which_player; in BuildBattle() 176 BuiltShipPtr->playerNr = RPG_PLAYER_NUM; in BuildBattle() 192 FleetIsInfinite (COUNT playerNr) in FleetIsInfinite() argument 199 pQueue = GetShipFragQueueForPlayer (playerNr); in FleetIsInfinite() 223 frag_q = GetShipFragQueueForPlayer (StarShipPtr->playerNr); in UpdateShipFragCrew() 224 ship_q = &race_q[StarShipPtr->playerNr]; in UpdateShipFragCrew()
|
H A D | tactrans.c | 249 return readyForBattleEndPlayer (netConnections[context->playerNr]); in battleEndReadyNetwork() 501 if (!FleetIsInfinite (DeadStarShipPtr->playerNr)) in new_ship() 508 if (GetNextStarShip (DeadStarShipPtr, DeadStarShipPtr->playerNr)) in new_ship() 591 ElementPtr->playerNr = NEUTRAL_PLAYER_NUM; in explosion_preprocess() 694 assert (deadStarShip->playerNr >= 0); in RecordShipDeath() 695 battle_counter[deadStarShip->playerNr]--; in RecordShipDeath() 814 IonElementPtr->playerNr = NEUTRAL_PLAYER_NUM; in spawn_ion_trail() 916 ShipImagePtr->playerNr = NEUTRAL_PLAYER_NUM; in ship_transition()
|
H A D | misc.c | 42 PlanetElementPtr->playerNr = NEUTRAL_PLAYER_NUM; in spawn_planet() 83 RubbleElementPtr->playerNr = AsteroidElementPtr->playerNr; in spawn_rubble() 141 AsteroidElementPtr->playerNr = NEUTRAL_PLAYER_NUM; in spawn_asteroid() 341 CrewPtr->playerNr = NEUTRAL_PLAYER_NUM; in AbandonShip()
|
/dports/games/alienblaster/alienblaster/src/ |
H A D | racer.cc | 42 playerNr = whichPlayer; in Racer() 75 if ( playerNr == 0 ) { in Racer() 106 if ( playerNr == 0 ) { in Racer() 239 if ( playerNr == 1 ) { in drawStats() 284 switch (playerNr) { in drawStats() 297 switch (playerNr) { in drawStats() 424 new Shot( SHOT_NORMAL, playerNr, in shootPrimary() 438 new Shot( SHOT_NORMAL_HEAVY, playerNr, in shootPrimary() 497 new Shot( SHOT_HF_NORMAL, playerNr, in shootPrimary() 1065 playerNr, pos, in specialKeyDown() [all …]
|
/dports/games/uqm/uqm-0.8.0/src/uqm/supermelee/netplay/ |
H A D | notifyall.c | 24 Netplay_NotifyAll_setTeamName (MELEE_STATE *pMS, size_t playerNr) in Netplay_NotifyAll_setTeamName() argument 30 name = MeleeSetup_getTeamName (pMS->meleeSetup, playerNr); in Netplay_NotifyAll_setTeamName() 45 Netplay_Notify_setTeamName (conn, playerNr, name, len); in Netplay_NotifyAll_setTeamName() 51 Netplay_NotifyAll_setFleet (MELEE_STATE *pMS, size_t playerNr) in Netplay_NotifyAll_setFleet() argument 54 const MeleeShip *ships = MeleeSetup_getFleet (setup, playerNr); in Netplay_NotifyAll_setFleet() 69 Netplay_Notify_setFleet (conn, playerNr, ships, MELEE_FLEET_SIZE); in Netplay_NotifyAll_setFleet() 75 Netplay_NotifyAll_setShip (MELEE_STATE *pMS, size_t playerNr, size_t index) in Netplay_NotifyAll_setShip() argument 78 MeleeShip ship = MeleeSetup_getShip (setup, playerNr, index); in Netplay_NotifyAll_setShip() 94 Netplay_Notify_setShip (conn, playerNr, index, ship); in Netplay_NotifyAll_setShip()
|
H A D | notifyall.h | 31 void Netplay_NotifyAll_setTeamName (MELEE_STATE *pMS, size_t playerNr); 32 void Netplay_NotifyAll_setFleet (MELEE_STATE *pMS, size_t playerNr); 33 void Netplay_NotifyAll_setShip (MELEE_STATE *pMS, size_t playerNr,
|
H A D | netmelee.c | 55 addNetConnection(NetConnection *conn, int playerNr) { in addNetConnection() argument 56 netConnections[playerNr] = conn; in addNetConnection() 61 removeNetConnection(int playerNr) { in removeNetConnection() argument 62 netConnections[playerNr] = NULL; in removeNetConnection() 309 BattleInputBuffer *bib = getBattleInputBuffer(context->playerNr); in networkBattleInput() 335 NetConnection *conn = netConnections[context->playerNr]; in networkBattleInput() 354 "happens a lot.\n", context->playerNr); in networkBattleInput()
|
H A D | netmelee.h | 41 void addNetConnection(NetConnection *conn, int playerNr); 42 void removeNetConnection(int playerNr);
|
/dports/games/maxr/maxr-0.2.9/src/ |
H A D | servergame.cpp | 208 int playerNr = message.popInt16(); in handleNetMessage_MU_MSG_IDENTIFIKATION() local 210 …egin(), menuPlayers.end(), [playerNr] (const std::shared_ptr<cPlayerBasicData>& player) { return p… in handleNetMessage_MU_MSG_IDENTIFIKATION() 220 …Log.write ("game version of client " + iToStr (playerNr) + " is: " + message.popString(), cLog::eL… in handleNetMessage_MU_MSG_IDENTIFIKATION() 369 int playerNr = message.popInt32(); in handleNetMessage_MU_MSG_LANDING_POSITION() local 372 …Log.write ("Server: received landing coords from Player " + iToStr (playerNr), cLog::eLOG_TYPE_NET… in handleNetMessage_MU_MSG_LANDING_POSITION() 374 …egin(), menuPlayers.end(), [playerNr] (const std::shared_ptr<cPlayerBasicData>& player) { return p… in handleNetMessage_MU_MSG_LANDING_POSITION() 500 int cServerGame::getSocketForPlayerNr (int playerNr) const in getSocketForPlayerNr() 504 const cPlayer& player = server->getPlayerFromNumber (playerNr); in getSocketForPlayerNr() 509 if (menuPlayers[i]->getNr() == playerNr) in getSocketForPlayerNr()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/chmmr/ |
H A D | chmmr.c | 175 IonSpotsPtr->playerNr = ElementPtr->playerNr; in laser_death() 240 LaserBlock.sender = ShipPtr->playerNr; in initialize_megawatt_laser() 310 MuzzleFlashPtr->playerNr = ElementPtr->playerNr; in chmmr_postprocess() 422 ShadowElementPtr->playerNr = ShipElementPtr->playerNr; in chmmr_postprocess() 533 && ObjectPtr->playerNr != NEUTRAL_PLAYER_NUM in spawn_point_defense() 582 LaserBlock.sender = SattPtr->playerNr; in spawn_point_defense() 627 DefensePtr->playerNr = ElementPtr->playerNr; in satellite_postprocess() 701 SattPtr->playerNr = ElementPtr->playerNr; in spawn_satellites() 755 SattPtr->playerNr = ElementPtr->playerNr; in chmmr_preprocess()
|
/dports/games/maxr/maxr-0.2.9/src/ui/graphical/menu/control/ |
H A D | menucontrollermultiplayerclient.cpp | 584 int playerNr = message.popInt32(); in handleNetMessage_MU_MSG_OPTINS() local 585 …PlayerList.push_back (cPlayerBasicData (playerName, cPlayerColor (cRgbColor (0, 0, 0)), playerNr)); in handleNetMessage_MU_MSG_OPTINS() 685 const int playerNr = message.popInt16(); in handleNetMessage_GAME_EV_RECONNECT_ANSWER() local 686 players.push_back (cPlayerBasicData (playerName, cPlayerColor (playerColor), playerNr)); in handleNetMessage_GAME_EV_RECONNECT_ANSWER() 718 const auto playerNr = message.popInt32(); in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() local 723 …rs.begin(), players.end(), [playerNr] (const std::shared_ptr<cPlayerBasicData>& player) { return p… in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() 735 …ndingStatus.end(), [playerNr] (const std::unique_ptr<cPlayerLandingStatus>& status) { return statu… in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() 746 const auto playerNr = message.popInt32(); in handleNetMessage_MU_MSG_PLAYER_HAS_SELECTED_LANDING_POSITION() local 748 …andingStatus.end(), [playerNr] (const std::unique_ptr<cPlayerLandingStatus>& entry) { return entry… in handleNetMessage_MU_MSG_PLAYER_HAS_SELECTED_LANDING_POSITION() 762 const auto playerNr = message.popInt32(); in handleNetMessage_MU_MSG_PLAYER_HAS_ABORTED_GAME_PREPARATION() local [all …]
|
H A D | menucontrollermultiplayerhost.cpp | 771 const auto playerNr = message.popInt16(); in handleNetMessage_MU_MSG_IDENTIFIKATION() local 806 const int playerNr = message.popInt16(); in handleNetMessage_MU_MSG_REQUEST_MAP() local 855 int playerNr = message.popInt32(); in handleNetMessage_MU_MSG_LANDING_POSITION() local 858 …Log.write ("Server: received landing coords from Player " + iToStr (playerNr), cLog::eLOG_TYPE_NET… in handleNetMessage_MU_MSG_LANDING_POSITION() 862 …rs.begin(), players.end(), [playerNr] (const std::shared_ptr<cPlayerBasicData>& player) { return p… in handleNetMessage_MU_MSG_LANDING_POSITION() 882 const auto playerNr = message.popInt32(); in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() local 884 …rs.begin(), players.end(), [playerNr] (const std::shared_ptr<cPlayerBasicData>& player) { return p… in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() 896 …ndingPositionSelection) windowLandingPositionSelection->getChatBox()->removePlayerEntry (playerNr); in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() 897 …ndingStatus.end(), [playerNr] (const std::unique_ptr<cPlayerLandingStatus>& status) { return statu… in handleNetMessage_MU_MSG_IN_LANDING_POSITION_SELECTION_STATUS() 916 const auto playerNr = message.popInt32(); in handleNetMessage_MU_MSG_PLAYER_HAS_ABORTED_GAME_PREPARATION() local [all …]
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/lastbat/ |
H A D | lastbat.c | 193 if (ElementPtr1->playerNr == RPG_PLAYER_NUM) in comet_collision() 243 MissileBlock.sender = ElementPtr->playerNr; in spawn_comet() 321 if (ElementPtr1->playerNr == RPG_PLAYER_NUM) in gate_collision() 611 if (ElementPtr1->playerNr == NPC_PLAYER_NUM) in sentinel_collision() 731 MissileBlock.sender = ElementPtr->playerNr; in samatra_postprocess() 802 GeneratorPtr->playerNr = ElementPtr->playerNr; in samatra_preprocess() 846 TurretPtr->playerNr = ElementPtr->playerNr; in samatra_preprocess() 882 GatePtr->playerNr = ElementPtr->playerNr; in samatra_preprocess()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/supermelee/ |
H A D | pickmele.c | 272 PulsedInputToBattleInput (context->playerNr); in selectShipHuman() 274 return SelectShip_processInput (gms, context->playerNr, inputState); in selectShipHuman() 282 if (now < gms->player[context->playerNr].timeIn + in selectShipComputer() 286 return SelectShip_processInput (gms, context->playerNr, BATTLE_WEAPON); in selectShipComputer() 297 if (gms->player[context->playerNr].remoteSelected) in selectShipNetwork() 298 gms->player[context->playerNr].done = TRUE; in selectShipNetwork() 607 BuiltShipPtr->playerNr = side; in FillPickMeleeFrame() 695 frame = SetAbsFrameIndex (PickMeleeFrame, ship->playerNr); in MeleeShipDeath() 697 UpdatePickMeleeFleetValue (frame, ship->playerNr); in MeleeShipDeath()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/melnorme/ |
H A D | melnorme.c | 323 MissileBlock.sender = ShipPtr->playerNr; in initialize_pump_up() 391 eptr->playerNr = ElementPtr->playerNr; in confuse_preprocess() 452 ConfusionPtr->playerNr = ElementPtr0->playerNr; in confusion_collision() 492 ConfusionBlock.sender = ShipPtr->playerNr; in initialize_confusion() 528 MissileBlock.sender = ShipPtr->playerNr; in initialize_test_pump_up()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/human/ |
H A D | human.c | 177 DefensePtr->playerNr = ElementPtr->playerNr; in spawn_point_defense() 247 LaserBlock.sender = ShipPtr->playerNr; in spawn_point_defense() 282 MissileBlock.sender = ShipPtr->playerNr; in initialize_nuke()
|