steam-condenser 1.3.8.1 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +48 -0
- data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +1 -1
- data/doc/A2S_INFO_Packet.html +1 -1
- data/doc/A2S_PLAYER_Packet.html +1 -1
- data/doc/A2S_RULES_Packet.html +1 -1
- data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +1 -1
- data/doc/AbstractL4DStats.html +1 -1
- data/doc/AbstractL4DWeapon.html +1 -1
- data/doc/AlienSwarmMission.html +1 -1
- data/doc/AlienSwarmStats.html +1 -1
- data/doc/AlienSwarmWeapon.html +1 -1
- data/doc/AppNews.html +1 -1
- data/doc/C2M_CHECKMD5_Packet.html +1 -1
- data/doc/CSSMap.html +1 -1
- data/doc/CSSStats.html +1 -1
- data/doc/CSSWeapon.html +1 -1
- data/doc/Cacheable.html +1 -1
- data/doc/Cacheable/ClassMethods.html +1 -1
- data/doc/DefenseGridStats.html +1 -1
- data/doc/DoDSClass.html +1 -1
- data/doc/DoDSStats.html +1 -1
- data/doc/DoDSWeapon.html +1 -1
- data/doc/Dota2BetaInventory.html +1 -1
- data/doc/Dota2Inventory.html +1 -1
- data/doc/Dota2Item.html +1 -1
- data/doc/GameAchievement.html +1 -1
- data/doc/GameClass.html +1 -1
- data/doc/GameInventory.html +1 -1
- data/doc/GameItem.html +1 -1
- data/doc/GameItemSchema.html +1 -1
- data/doc/GameLeaderboard.html +1 -1
- data/doc/GameLeaderboardEntry.html +1 -1
- data/doc/GameServer.html +1 -1
- data/doc/GameStats.html +1 -1
- data/doc/GameWeapon.html +1 -1
- data/doc/GoldSrcServer.html +1 -1
- data/doc/GoldSrcSocket.html +1 -1
- data/doc/L4D2Map.html +1 -1
- data/doc/L4D2Stats.html +1 -1
- data/doc/L4D2Weapon.html +1 -1
- data/doc/L4DExplosive.html +1 -1
- data/doc/L4DMap.html +1 -1
- data/doc/L4DStats.html +1 -1
- data/doc/L4DWeapon.html +1 -1
- data/doc/M2A_SERVER_BATCH_Packet.html +1 -1
- data/doc/M2C_ISVALIDMD5_Packet.html +1 -1
- data/doc/M2S_REQUESTRESTART_Packet.html +1 -1
- data/doc/MasterServer.html +1 -1
- data/doc/MasterServerSocket.html +1 -1
- data/doc/PacketFormatError.html +1 -1
- data/doc/Portal2Inventory.html +1 -1
- data/doc/Portal2Item.html +1 -1
- data/doc/Portal2Stats.html +1 -1
- data/doc/RCONAuthRequest.html +1 -1
- data/doc/RCONAuthResponse.html +1 -1
- data/doc/RCONBanError.html +1 -1
- data/doc/RCONExecRequest.html +1 -1
- data/doc/RCONExecResponse.html +1 -1
- data/doc/RCONGoldSrcRequest.html +1 -1
- data/doc/RCONGoldSrcResponse.html +1 -1
- data/doc/RCONNoAuthError.html +1 -1
- data/doc/RCONPacket.html +1 -1
- data/doc/RCONPacketFactory.html +1 -1
- data/doc/RCONSocket.html +13 -5
- data/doc/RCONTerminator.html +1 -1
- data/doc/RequestWithChallenge.html +1 -1
- data/doc/S2A_INFO2_Packet.html +1 -1
- data/doc/S2A_INFO_BasePacket.html +1 -1
- data/doc/S2A_INFO_DETAILED_Packet.html +1 -1
- data/doc/S2A_LOGSTRING_Packet.html +1 -1
- data/doc/S2A_PLAYER_Packet.html +1 -1
- data/doc/S2A_RULES_Packet.html +1 -1
- data/doc/S2C_CHALLENGE_Packet.html +1 -1
- data/doc/S2M_HEARTBEAT2_Packet.html +1 -1
- data/doc/Server.html +1 -1
- data/doc/SourceServer.html +33 -34
- data/doc/SourceSocket.html +1 -1
- data/doc/SteamCondenser.html +2 -2
- data/doc/SteamCondenser/Community.html +1 -1
- data/doc/SteamCondenser/Servers.html +1 -1
- data/doc/SteamCondenser/TimeoutError.html +1 -1
- data/doc/SteamCondenserError.html +1 -1
- data/doc/SteamGame.html +1 -1
- data/doc/SteamGroup.html +1 -1
- data/doc/SteamId.html +1 -1
- data/doc/SteamPacket.html +1 -1
- data/doc/SteamPacketFactory.html +1 -1
- data/doc/SteamPlayer.html +1 -1
- data/doc/SteamSocket.html +1 -1
- data/doc/StringIO.html +1 -1
- data/doc/TF2BetaInventory.html +1 -1
- data/doc/TF2Class.html +1 -1
- data/doc/TF2ClassFactory.html +1 -1
- data/doc/TF2Engineer.html +1 -1
- data/doc/TF2GoldenWrench.html +1 -1
- data/doc/TF2Inventory.html +1 -1
- data/doc/TF2Item.html +1 -1
- data/doc/TF2Medic.html +1 -1
- data/doc/TF2Sniper.html +1 -1
- data/doc/TF2Spy.html +1 -1
- data/doc/TF2Stats.html +1 -1
- data/doc/WebApi.html +1 -1
- data/doc/WebApiError.html +1 -1
- data/doc/XMLData.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +20 -1
- data/doc/file.CONTRIBUTING.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/steam-condenser/version.rb +2 -2
- data/lib/steam/servers/source_server.rb +13 -20
- data/lib/steam/sockets/rcon_socket.rb +7 -3
- data/pkg/steam-condenser-1.3.8.1.gem +0 -0
- data/pkg/steam-condenser-1.3.8.1/CHANGELOG.md +233 -0
- data/pkg/steam-condenser-1.3.8.1/CONTRIBUTING.md +59 -0
- data/pkg/steam-condenser-1.3.8.1/Gemfile +11 -0
- data/pkg/steam-condenser-1.3.8.1/LICENSE +25 -0
- data/pkg/steam-condenser-1.3.8.1/README.md +75 -0
- data/pkg/steam-condenser-1.3.8.1/Rakefile +46 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2M_GET_SERVERS_BATCH2_Packet.html +446 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_INFO_Packet.html +264 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_PLAYER_Packet.html +300 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_RULES_Packet.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +266 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AbstractL4DStats.html +1033 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AbstractL4DWeapon.html +752 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmMission.html +1598 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmStats.html +1035 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmWeapon.html +653 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AppNews.html +1489 -0
- data/pkg/steam-condenser-1.3.8.1/doc/C2M_CHECKMD5_Packet.html +347 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSMap.html +824 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSStats.html +888 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSWeapon.html +910 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Cacheable.html +942 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Cacheable/ClassMethods.html +721 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DefenseGridStats.html +2659 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSClass.html +1291 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSStats.html +537 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSWeapon.html +824 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2BetaInventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2Item.html +396 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameAchievement.html +1292 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameClass.html +328 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameInventory.html +1512 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameItem.html +1926 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameItemSchema.html +1477 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameLeaderboard.html +1741 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameLeaderboardEntry.html +642 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameServer.html +2495 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameStats.html +1501 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameWeapon.html +603 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GoldSrcServer.html +766 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GoldSrcSocket.html +874 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Map.html +758 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Stats.html +1020 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Weapon.html +496 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DExplosive.html +383 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DMap.html +789 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DStats.html +579 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DWeapon.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2A_SERVER_BATCH_Packet.html +439 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2C_ISVALIDMD5_Packet.html +390 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2S_REQUESTRESTART_Packet.html +390 -0
- data/pkg/steam-condenser-1.3.8.1/doc/MasterServer.html +1104 -0
- data/pkg/steam-condenser-1.3.8.1/doc/MasterServerSocket.html +300 -0
- data/pkg/steam-condenser-1.3.8.1/doc/PacketFormatError.html +176 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Item.html +616 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Stats.html +413 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONAuthRequest.html +325 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONAuthResponse.html +312 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONBanError.html +257 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONExecRequest.html +325 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONExecResponse.html +416 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONGoldSrcRequest.html +369 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONGoldSrcResponse.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONNoAuthError.html +256 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONPacket.html +561 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONPacketFactory.html +308 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONSocket.html +725 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONTerminator.html +312 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RequestWithChallenge.html +238 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO2_Packet.html +417 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO_BasePacket.html +271 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO_DETAILED_Packet.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_LOGSTRING_Packet.html +379 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_PLAYER_Packet.html +424 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_RULES_Packet.html +418 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2C_CHALLENGE_Packet.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2M_HEARTBEAT2_Packet.html +455 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Server.html +886 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SourceServer.html +920 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SourceSocket.html +359 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser.html +157 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community.html +138 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AbstractL4DStats.html +1026 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AbstractL4DWeapon.html +749 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmMission.html +1557 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmStats.html +1013 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmWeapon.html +641 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AppNews.html +1441 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSMap.html +805 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSStats.html +866 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSWeapon.html +889 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Cacheable.html +911 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Cacheable/ClassMethods.html +695 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DefenseGridStats.html +2593 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSClass.html +1263 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSStats.html +520 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSWeapon.html +803 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2BetaInventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Item.html +388 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Match.html +505 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameAchievement.html +1100 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameClass.html +321 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameInventory.html +1469 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameItem.html +1900 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameItemSchema.html +1444 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameLeaderboard.html +1707 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameLeaderboardEntry.html +630 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStats.html +1461 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsSchema.html +771 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsValue.html +596 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsValue/Instance.html +262 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameWeapon.html +608 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Map.html +737 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Stats.html +989 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Weapon.html +486 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DExplosive.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DMap.html +775 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DStats.html +564 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DWeapon.html +296 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Item.html +603 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Stats.html +400 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamGame.html +1862 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamGroup.html +1018 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamId.html +4430 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2BetaInventory.html +345 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Class.html +1186 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2ClassFactory.html +273 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Engineer.html +555 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2GoldenWrench.html +760 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Item.html +602 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Medic.html +463 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Sniper.html +372 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Spy.html +553 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Stats.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/UserStats.html +760 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/WebApi.html +1116 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/XMLData.html +274 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error.html +380 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/PacketFormat.html +173 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/RCONBan.html +253 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/RCONNoAuth.html +252 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/Timeout.html +254 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/WebApi.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Logging.html +616 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers.html +137 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/BaseServer.html +870 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/GameServer.html +2428 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/GoldSrcServer.html +738 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/MasterServer.html +819 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets.html +132 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2M_GET_SERVERS_BATCH2_Packet.html +427 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_INFO_Packet.html +260 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_PLAYER_Packet.html +295 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_RULES_Packet.html +296 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/BasePacket.html +462 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/M2A_SERVER_BATCH_Packet.html +430 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON.html +119 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/BasePacket.html +564 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthRequest.html +317 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthResponse.html +305 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONExecRequest.html +317 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONExecResponse.html +406 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcRequest.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcResponse.html +368 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONPacketFactory.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONTerminator.html +304 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RequestWithChallenge.html +233 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO2_Packet.html +416 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO_BasePacket.html +266 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO_DETAILED_Packet.html +371 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_LOGSTRING_Packet.html +373 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_PLAYER_Packet.html +417 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_RULES_Packet.html +411 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2C_CHALLENGE_Packet.html +370 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/SteamPacketFactory.html +532 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets.html +119 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/BaseSocket.html +733 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/GoldSrcSocket.html +862 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/MasterServerSocket.html +306 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/RCONSocket.html +709 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/SourceSocket.html +367 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/SourceServer.html +892 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/SteamPlayer.html +1764 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/TimeoutError.html +260 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenserError.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamGame.html +2001 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamGroup.html +1587 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamId.html +4428 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPacket.html +457 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPacketFactory.html +574 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPlayer.html +1808 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamSocket.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/StringIO.html +986 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2BetaInventory.html +338 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Class.html +1228 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2ClassFactory.html +281 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Engineer.html +572 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2GoldenWrench.html +776 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Item.html +617 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Medic.html +476 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Sniper.html +381 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Spy.html +567 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Stats.html +751 -0
- data/pkg/steam-condenser-1.3.8.1/doc/WebApi.html +1156 -0
- data/pkg/steam-condenser-1.3.8.1/doc/WebApiError.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/XMLData.html +280 -0
- data/pkg/steam-condenser-1.3.8.1/doc/_index.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/class_list.html +54 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/common.css +1 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/full_list.css +57 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/style.css +338 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.CHANGELOG.html +472 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.CONTRIBUTING.html +156 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.LICENSE.html +118 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.README.html +179 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file_list.html +65 -0
- data/pkg/steam-condenser-1.3.8.1/doc/frames.html +26 -0
- data/pkg/steam-condenser-1.3.8.1/doc/index.html +179 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/app.js +219 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/full_list.js +178 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/jquery.js +4 -0
- data/pkg/steam-condenser-1.3.8.1/doc/method_list.html +3191 -0
- data/pkg/steam-condenser-1.3.8.1/doc/top-level-namespace.html +114 -0
- data/pkg/steam-condenser-1.3.8.1/lib/core_ext/stringio.rb +93 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/packet_format_error.rb +13 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/steam_condenser_error.rb +26 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_mission.rb +120 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/cacheable.rb +199 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_stats.rb +140 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_stats.rb +62 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_inventory.rb +171 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_item.rb +155 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_item_schema.rb +131 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_leaderboard.rb +212 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/abstract_l4d_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_stats.rb +179 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_stats.rb +73 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_stats.rb +33 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_game.rb +193 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_group.rb +176 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_id.rb +496 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_stats.rb +77 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/web_api.rb +139 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/xml_data.rb +27 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info2_packet.rb +76 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info_base_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info_detailed_packet.rb +64 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/steam_packet_factory.rb +113 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/game_server.rb +393 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/master_server.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/server.rb +115 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/source_server.rb +123 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/master_server_socket.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/rcon_socket.rb +103 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/source_socket.rb +73 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/steam_socket.rb +91 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.3.8.1/steam-condenser.gemspec +25 -0
- data/pkg/steam-condenser-1.3.8.1/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/valve-members.xml +261 -0
- data/pkg/steam-condenser-1.3.8.1/test/helper.rb +48 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_cacheable.rb +103 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_steam_group.rb +94 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_steam_id.rb +144 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_web_api.rb +124 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_source_server.rb +145 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_rcon_socket.rb +118 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_steam_socket.rb +97 -0
- data/test/steam/sockets/test_rcon_socket.rb +3 -7
- metadata +360 -2
@@ -0,0 +1,1020 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: L4D2Stats
|
8
|
+
|
9
|
+
— Metior — API Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (L)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">L4D2Stats</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: L4D2Stats
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">L4D2Stats</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dt class="r2">Includes:</dt>
|
96
|
+
<dd class="r2"><span class='object_link'><a href="AbstractL4DStats.html" title="AbstractL4DStats (module)">AbstractL4DStats</a></span></dd>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<dt class="r1 last">Defined in:</dt>
|
103
|
+
<dd class="r1 last">lib/steam/community/l4d/l4d2_stats.rb</dd>
|
104
|
+
|
105
|
+
</dl>
|
106
|
+
<div class="clear"></div>
|
107
|
+
|
108
|
+
<h2>Overview</h2><div class="docstring">
|
109
|
+
<div class="discussion">
|
110
|
+
|
111
|
+
<p>This class represents the game statistics for a single user in Left4Dead 2</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
<p class="tag_title">Author:</p>
|
119
|
+
<ul class="author">
|
120
|
+
|
121
|
+
<li>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<div class='inline'>
|
128
|
+
<p>Sebastian Staudt</p>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</li>
|
132
|
+
|
133
|
+
</ul>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
<h2>Constant Summary</h2>
|
137
|
+
|
138
|
+
<dl class="constants">
|
139
|
+
|
140
|
+
<dt id="SPECIAL_INFECTED-constant" class="">SPECIAL_INFECTED =
|
141
|
+
<div class="docstring">
|
142
|
+
<div class="discussion">
|
143
|
+
|
144
|
+
<p>The names of the special infected in Left4Dead 2</p>
|
145
|
+
|
146
|
+
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
<div class="tags">
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
</dt>
|
154
|
+
<dd><pre class="code"><span class='const'>SPECIAL_INFECTED</span> <span class='op'>+</span> <span class='qwords_beg'>%w{</span><span class='tstring_content'>charger</span><span class='words_sep'> </span><span class='tstring_content'>jockey</span><span class='words_sep'> </span><span class='tstring_content'>spitter</span><span class='words_sep'>}</span></pre></dd>
|
155
|
+
|
156
|
+
</dl>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
163
|
+
<ul class="summary">
|
164
|
+
|
165
|
+
<li class="public ">
|
166
|
+
<span class="summary_signature">
|
167
|
+
|
168
|
+
<a href="#damage_percentages-instance_method" title="#damage_percentages (instance method)">- (Hash<Symbol, Float>) <strong>damage_percentages</strong> </a>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
</span>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<span class="note title readonly">readonly</span>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
188
|
+
<p>Returns the percentage of damage done by this player with each weapon type.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
</ul>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="AbstractL4DStats.html" title="AbstractL4DStats (module)">AbstractL4DStats</a></span></h3>
|
201
|
+
<p class="inherited"><span class='object_link'><a href="AbstractL4DStats.html#most_recent_game-instance_method" title="AbstractL4DStats#most_recent_game (method)">#most_recent_game</a></span></p>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></h3>
|
206
|
+
<p class="inherited"><span class='object_link'><a href="GameStats.html#game-instance_method" title="GameStats#game (method)">#game</a></span>, <span class='object_link'><a href="GameStats.html#hours_played-instance_method" title="GameStats#hours_played (method)">#hours_played</a></span>, <span class='object_link'><a href="GameStats.html#privacy_state-instance_method" title="GameStats#privacy_state (method)">#privacy_state</a></span>, <span class='object_link'><a href="GameStats.html#user-instance_method" title="GameStats#user (method)">#user</a></span></p>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
<h2>
|
211
|
+
Instance Method Summary
|
212
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
213
|
+
</h2>
|
214
|
+
|
215
|
+
<ul class="summary">
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (L4D2Stats) <strong>initialize</strong>(steam_id, fetch = true, bypass_cache = false) </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
<span class="note title constructor">constructor</span>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<span class="summary_desc"><div class='inline'>
|
237
|
+
<p>Creates a <code>L4D2Stats</code> object by calling the super constructor
|
238
|
+
with the game name <code>'l4d2'</code>.</p>
|
239
|
+
</div></span>
|
240
|
+
|
241
|
+
</li>
|
242
|
+
|
243
|
+
|
244
|
+
<li class="public ">
|
245
|
+
<span class="summary_signature">
|
246
|
+
|
247
|
+
<a href="#lifetime_stats-instance_method" title="#lifetime_stats (instance method)">- (Hash<String, Object>) <strong>lifetime_stats</strong> </a>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</span>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<span class="summary_desc"><div class='inline'>
|
262
|
+
<p>Returns a hash of lifetime statistics for this user like the time played.</p>
|
263
|
+
</div></span>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
|
268
|
+
<li class="public ">
|
269
|
+
<span class="summary_signature">
|
270
|
+
|
271
|
+
<a href="#scavenge_stats-instance_method" title="#scavenge_stats (instance method)">- (Hash<String, Object>) <strong>scavenge_stats</strong> </a>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
</span>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<span class="summary_desc"><div class='inline'>
|
286
|
+
<p>Returns a hash of Scavenge statistics for this user like the number of
|
287
|
+
Scavenge rounds played.</p>
|
288
|
+
</div></span>
|
289
|
+
|
290
|
+
</li>
|
291
|
+
|
292
|
+
|
293
|
+
<li class="public ">
|
294
|
+
<span class="summary_signature">
|
295
|
+
|
296
|
+
<a href="#survival_stats-instance_method" title="#survival_stats (instance method)">- (Hash<String, Object>) <strong>survival_stats</strong> </a>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
</span>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
<span class="summary_desc"><div class='inline'>
|
311
|
+
<p>Returns a hash of Survival statistics for this user like revived teammates.</p>
|
312
|
+
</div></span>
|
313
|
+
|
314
|
+
</li>
|
315
|
+
|
316
|
+
|
317
|
+
<li class="public ">
|
318
|
+
<span class="summary_signature">
|
319
|
+
|
320
|
+
<a href="#weapon_stats-instance_method" title="#weapon_stats (instance method)">- (Hash<String, Object>) <strong>weapon_stats</strong> </a>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
</span>
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
<span class="summary_desc"><div class='inline'>
|
335
|
+
<p>Returns a hash of <code>L4D2Weapon</code> for this user containing all
|
336
|
+
Left4Dead 2 weapons.</p>
|
337
|
+
</div></span>
|
338
|
+
|
339
|
+
</li>
|
340
|
+
|
341
|
+
|
342
|
+
</ul>
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="AbstractL4DStats.html" title="AbstractL4DStats (module)">AbstractL4DStats</a></span></h3>
|
355
|
+
<p class="inherited"><span class='object_link'><a href="AbstractL4DStats.html#favorites-instance_method" title="AbstractL4DStats#favorites (method)">#favorites</a></span>, <span class='object_link'><a href="AbstractL4DStats.html#teamplay_stats-instance_method" title="AbstractL4DStats#teamplay_stats (method)">#teamplay_stats</a></span>, <span class='object_link'><a href="AbstractL4DStats.html#versus_stats-instance_method" title="AbstractL4DStats#versus_stats (method)">#versus_stats</a></span></p>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></h3>
|
366
|
+
<p class="inherited"><span class='object_link'><a href="GameStats.html#achievements-instance_method" title="GameStats#achievements (method)">#achievements</a></span>, <span class='object_link'><a href="GameStats.html#achievements_done-instance_method" title="GameStats#achievements_done (method)">#achievements_done</a></span>, <span class='object_link'><a href="GameStats.html#achievements_percentage-instance_method" title="GameStats#achievements_percentage (method)">#achievements_percentage</a></span>, <span class='object_link'><a href="GameStats.html#base_url-class_method" title="GameStats.base_url (method)">base_url</a></span>, <span class='object_link'><a href="GameStats.html#base_url-instance_method" title="GameStats#base_url (method)">#base_url</a></span>, <span class='object_link'><a href="GameStats.html#create_game_stats-class_method" title="GameStats.create_game_stats (method)">create_game_stats</a></span>, <span class='object_link'><a href="GameStats.html#public%3F-instance_method" title="GameStats#public? (method)">#public?</a></span></p>
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="XMLData.html" title="XMLData (module)">XMLData</a></span></h3>
|
377
|
+
<p class="inherited"><span class='object_link'><a href="XMLData.html#parse-instance_method" title="XMLData#parse (method)">#parse</a></span></p>
|
378
|
+
<div id="constructor_details" class="method_details_list">
|
379
|
+
<h2>Constructor Details</h2>
|
380
|
+
|
381
|
+
<div class="method_details first">
|
382
|
+
<h3 class="signature first" id="initialize-instance_method">
|
383
|
+
|
384
|
+
- (<tt><span class='object_link'><a href="" title="L4D2Stats (class)">L4D2Stats</a></span></tt>) <strong>initialize</strong>(steam_id, fetch = true, bypass_cache = false)
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
</h3><div class="docstring">
|
391
|
+
<div class="discussion">
|
392
|
+
|
393
|
+
<p>Creates a <code>L4D2Stats</code> object by calling the super constructor
|
394
|
+
with the game
|
395
|
+
name <code>'l4d2'</code></p>
|
396
|
+
|
397
|
+
|
398
|
+
</div>
|
399
|
+
</div>
|
400
|
+
<div class="tags">
|
401
|
+
|
402
|
+
|
403
|
+
<p class="tag_title">Parameters:</p>
|
404
|
+
<ul class="param">
|
405
|
+
|
406
|
+
<li>
|
407
|
+
|
408
|
+
<span class='name'>steam_id</span>
|
409
|
+
|
410
|
+
|
411
|
+
<span class='type'>(<tt>String</tt>, <tt>Fixnum</tt>)</span>
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
—
|
416
|
+
<div class='inline'>
|
417
|
+
<p>The custom URL or 64bit Steam ID of the
|
418
|
+
user</p>
|
419
|
+
</div>
|
420
|
+
|
421
|
+
</li>
|
422
|
+
|
423
|
+
<li>
|
424
|
+
|
425
|
+
<span class='name'>fetch</span>
|
426
|
+
|
427
|
+
|
428
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
—
|
433
|
+
<div class='inline'>
|
434
|
+
<p>if <code>true</code> the object's data is fetched after
|
435
|
+
creation</p>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
</li>
|
439
|
+
|
440
|
+
<li>
|
441
|
+
|
442
|
+
<span class='name'>bypass_cache</span>
|
443
|
+
|
444
|
+
|
445
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
—
|
450
|
+
<div class='inline'>
|
451
|
+
<p>if <code>true</code> the object's data is fetched again
|
452
|
+
even if it has
|
453
|
+
been cached already</p>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
</li>
|
457
|
+
|
458
|
+
</ul>
|
459
|
+
|
460
|
+
|
461
|
+
</div><table class="source_code">
|
462
|
+
<tr>
|
463
|
+
<td>
|
464
|
+
<pre class="lines">
|
465
|
+
|
466
|
+
|
467
|
+
34
|
468
|
+
35
|
469
|
+
36
|
470
|
+
37
|
471
|
+
38
|
472
|
+
39
|
473
|
+
40
|
474
|
+
41
|
475
|
+
42
|
476
|
+
43
|
477
|
+
44
|
478
|
+
45</pre>
|
479
|
+
</td>
|
480
|
+
<td>
|
481
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 34</span>
|
482
|
+
|
483
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_steam_id'>steam_id</span><span class='rparen'>)</span>
|
484
|
+
<span class='kw'>super</span> <span class='id identifier rubyid_steam_id'>steam_id</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>l4d2</span><span class='tstring_end'>'</span></span>
|
485
|
+
|
486
|
+
<span class='id identifier rubyid_weapons_data'>weapons_data</span> <span class='op'>=</span> <span class='ivar'>@xml_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>weapons</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
487
|
+
|
488
|
+
<span class='ivar'>@damage_percentages</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
489
|
+
<span class='symbol'>:melee</span> <span class='op'>=></span> <span class='id identifier rubyid_weapons_data'>weapons_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>meleepctdmg</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
490
|
+
<span class='symbol'>:pistols</span> <span class='op'>=></span> <span class='id identifier rubyid_weapons_data'>weapons_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pistolspctdmg</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
491
|
+
<span class='symbol'>:rifles</span> <span class='op'>=></span> <span class='id identifier rubyid_weapons_data'>weapons_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bulletspctdmg</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
492
|
+
<span class='symbol'>:shotguns</span> <span class='op'>=></span> <span class='id identifier rubyid_weapons_data'>weapons_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>shellspctdmg</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span>
|
493
|
+
<span class='rbrace'>}</span>
|
494
|
+
<span class='kw'>end</span></pre>
|
495
|
+
</td>
|
496
|
+
</tr>
|
497
|
+
</table>
|
498
|
+
</div>
|
499
|
+
|
500
|
+
</div>
|
501
|
+
|
502
|
+
<div id="instance_attr_details" class="attr_details">
|
503
|
+
<h2>Instance Attribute Details</h2>
|
504
|
+
|
505
|
+
|
506
|
+
<span id=""></span>
|
507
|
+
<div class="method_details first">
|
508
|
+
<h3 class="signature first" id="damage_percentages-instance_method">
|
509
|
+
|
510
|
+
- (<tt>Hash<Symbol, Float></tt>) <strong>damage_percentages</strong> <span class="extras">(readonly)</span>
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
</h3><div class="docstring">
|
517
|
+
<div class="discussion">
|
518
|
+
|
519
|
+
<p>Returns the percentage of damage done by this player with each weapon type</p>
|
520
|
+
|
521
|
+
<p>Available weapon types are <code>:melee</code>, <code>:pistols</code>,
|
522
|
+
<code>:rifles</code> and <code>:shotguns</code>.</p>
|
523
|
+
|
524
|
+
|
525
|
+
</div>
|
526
|
+
</div>
|
527
|
+
<div class="tags">
|
528
|
+
|
529
|
+
<p class="tag_title">Returns:</p>
|
530
|
+
<ul class="return">
|
531
|
+
|
532
|
+
<li>
|
533
|
+
|
534
|
+
|
535
|
+
<span class='type'>(<tt>Hash<Symbol, Float></tt>)</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
—
|
540
|
+
<div class='inline'>
|
541
|
+
<p>The percentages of damage done with each
|
542
|
+
weapon type</p>
|
543
|
+
</div>
|
544
|
+
|
545
|
+
</li>
|
546
|
+
|
547
|
+
</ul>
|
548
|
+
|
549
|
+
</div><table class="source_code">
|
550
|
+
<tr>
|
551
|
+
<td>
|
552
|
+
<pre class="lines">
|
553
|
+
|
554
|
+
|
555
|
+
26
|
556
|
+
27
|
557
|
+
28</pre>
|
558
|
+
</td>
|
559
|
+
<td>
|
560
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 26</span>
|
561
|
+
|
562
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_damage_percentages'>damage_percentages</span>
|
563
|
+
<span class='ivar'>@damage_percentages</span>
|
564
|
+
<span class='kw'>end</span></pre>
|
565
|
+
</td>
|
566
|
+
</tr>
|
567
|
+
</table>
|
568
|
+
</div>
|
569
|
+
|
570
|
+
</div>
|
571
|
+
|
572
|
+
|
573
|
+
<div id="instance_method_details" class="method_details_list">
|
574
|
+
<h2>Instance Method Details</h2>
|
575
|
+
|
576
|
+
|
577
|
+
<div class="method_details first">
|
578
|
+
<h3 class="signature first" id="lifetime_stats-instance_method">
|
579
|
+
|
580
|
+
- (<tt>Hash<String, Object></tt>) <strong>lifetime_stats</strong>
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
</h3><div class="docstring">
|
587
|
+
<div class="discussion">
|
588
|
+
|
589
|
+
<p>Returns a hash of lifetime statistics for this user like the time played</p>
|
590
|
+
|
591
|
+
<p>If the lifetime statistics haven't been parsed already, parsing is
|
592
|
+
done
|
593
|
+
now.</p>
|
594
|
+
|
595
|
+
<p>There are only a few additional lifetime statistics for Left4Dead 2
|
596
|
+
which
|
597
|
+
are not generated for Left4Dead, so this
|
598
|
+
calls
|
599
|
+
<span class='object_link'><a href="AbstractL4DStats.html#lifetime_stats-instance_method" title="AbstractL4DStats#lifetime_stats (method)">AbstractL4DStats#lifetime_stats</a></span> first and adds some additional
|
600
|
+
stats.</p>
|
601
|
+
|
602
|
+
|
603
|
+
</div>
|
604
|
+
</div>
|
605
|
+
<div class="tags">
|
606
|
+
|
607
|
+
<p class="tag_title">Returns:</p>
|
608
|
+
<ul class="return">
|
609
|
+
|
610
|
+
<li>
|
611
|
+
|
612
|
+
|
613
|
+
<span class='type'>(<tt>Hash<String, Object></tt>)</span>
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
—
|
618
|
+
<div class='inline'>
|
619
|
+
<p>The lifetime statistics of the player in
|
620
|
+
Left4Dead 2</p>
|
621
|
+
</div>
|
622
|
+
|
623
|
+
</li>
|
624
|
+
|
625
|
+
</ul>
|
626
|
+
|
627
|
+
</div><table class="source_code">
|
628
|
+
<tr>
|
629
|
+
<td>
|
630
|
+
<pre class="lines">
|
631
|
+
|
632
|
+
|
633
|
+
58
|
634
|
+
59
|
635
|
+
60
|
636
|
+
61
|
637
|
+
62
|
638
|
+
63
|
639
|
+
64
|
640
|
+
65
|
641
|
+
66
|
642
|
+
67
|
643
|
+
68
|
644
|
+
69
|
645
|
+
70
|
646
|
+
71
|
647
|
+
72
|
648
|
+
73</pre>
|
649
|
+
</td>
|
650
|
+
<td>
|
651
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 58</span>
|
652
|
+
|
653
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_lifetime_stats'>lifetime_stats</span>
|
654
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_public?'>public?</span>
|
655
|
+
|
656
|
+
<span class='kw'>if</span> <span class='ivar'>@lifetime_stats</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
657
|
+
<span class='kw'>super</span>
|
658
|
+
|
659
|
+
<span class='id identifier rubyid_lifetime_data'>lifetime_data</span> <span class='op'>=</span> <span class='ivar'>@xml_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>lifetime</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
660
|
+
<span class='ivar'>@lifetime_stats</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
661
|
+
<span class='symbol'>:avg_adrenaline_shared</span> <span class='op'>=></span> <span class='id identifier rubyid_lifetime_data'>lifetime_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>adrenalineshared</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
662
|
+
<span class='symbol'>:avg_adrenaline_used</span> <span class='op'>=></span> <span class='id identifier rubyid_lifetime_data'>lifetime_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>adrenalineused</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
663
|
+
<span class='symbol'>:avg_defibrillators_used</span> <span class='op'>=></span> <span class='id identifier rubyid_lifetime_data'>lifetime_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>defibrillatorsused</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span>
|
664
|
+
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
665
|
+
<span class='kw'>end</span>
|
666
|
+
|
667
|
+
<span class='ivar'>@lifetime_stats</span>
|
668
|
+
<span class='kw'>end</span></pre>
|
669
|
+
</td>
|
670
|
+
</tr>
|
671
|
+
</table>
|
672
|
+
</div>
|
673
|
+
|
674
|
+
<div class="method_details ">
|
675
|
+
<h3 class="signature " id="scavenge_stats-instance_method">
|
676
|
+
|
677
|
+
- (<tt>Hash<String, Object></tt>) <strong>scavenge_stats</strong>
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
</h3><div class="docstring">
|
684
|
+
<div class="discussion">
|
685
|
+
|
686
|
+
<p>Returns a hash of Scavenge statistics for this user like the number
|
687
|
+
of
|
688
|
+
Scavenge rounds played</p>
|
689
|
+
|
690
|
+
<p>If the Scavenge statistics haven't been parsed already, parsing is
|
691
|
+
done
|
692
|
+
now.</p>
|
693
|
+
|
694
|
+
|
695
|
+
</div>
|
696
|
+
</div>
|
697
|
+
<div class="tags">
|
698
|
+
|
699
|
+
<p class="tag_title">Returns:</p>
|
700
|
+
<ul class="return">
|
701
|
+
|
702
|
+
<li>
|
703
|
+
|
704
|
+
|
705
|
+
<span class='type'>(<tt>Hash<String, Object></tt>)</span>
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
—
|
710
|
+
<div class='inline'>
|
711
|
+
<p>The Scavenge statistics of the player</p>
|
712
|
+
</div>
|
713
|
+
|
714
|
+
</li>
|
715
|
+
|
716
|
+
</ul>
|
717
|
+
|
718
|
+
</div><table class="source_code">
|
719
|
+
<tr>
|
720
|
+
<td>
|
721
|
+
<pre class="lines">
|
722
|
+
|
723
|
+
|
724
|
+
82
|
725
|
+
83
|
726
|
+
84
|
727
|
+
85
|
728
|
+
86
|
729
|
+
87
|
730
|
+
88
|
731
|
+
89
|
732
|
+
90
|
733
|
+
91
|
734
|
+
92
|
735
|
+
93
|
736
|
+
94
|
737
|
+
95
|
738
|
+
96
|
739
|
+
97
|
740
|
+
98
|
741
|
+
99
|
742
|
+
100
|
743
|
+
101
|
744
|
+
102
|
745
|
+
103
|
746
|
+
104
|
747
|
+
105
|
748
|
+
106
|
749
|
+
107
|
750
|
+
108
|
751
|
+
109
|
752
|
+
110
|
753
|
+
111
|
754
|
+
112
|
755
|
+
113
|
756
|
+
114
|
757
|
+
115
|
758
|
+
116
|
759
|
+
117
|
760
|
+
118
|
761
|
+
119
|
762
|
+
120
|
763
|
+
121
|
764
|
+
122
|
765
|
+
123</pre>
|
766
|
+
</td>
|
767
|
+
<td>
|
768
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 82</span>
|
769
|
+
|
770
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_scavenge_stats'>scavenge_stats</span>
|
771
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_public?'>public?</span>
|
772
|
+
|
773
|
+
<span class='kw'>if</span> <span class='ivar'>@scavenge_stats</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
774
|
+
<span class='id identifier rubyid_scavange_data'>scavange_data</span> <span class='op'>=</span> <span class='ivar'>@xml_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>scavenge</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
775
|
+
|
776
|
+
<span class='ivar'>@scavenge_stats</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
777
|
+
<span class='symbol'>:avg_cans_per_round</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>avgcansperround</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
778
|
+
<span class='symbol'>:perfect_rounds</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>perfect16canrounds</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
779
|
+
<span class='symbol'>:rounds_lost</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>roundslost</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
780
|
+
<span class='symbol'>:rounds_played</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>roundsplayed</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
781
|
+
<span class='symbol'>:rounds_won</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>roundswon</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
782
|
+
<span class='symbol'>:total_cans</span> <span class='op'>=></span> <span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>totalcans</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
783
|
+
<span class='rbrace'>}</span>
|
784
|
+
|
785
|
+
<span class='ivar'>@scavenge_stats</span><span class='lbracket'>[</span><span class='symbol'>:maps</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
786
|
+
<span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>mapstats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>map</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_map_data'>map_data</span><span class='op'>|</span>
|
787
|
+
<span class='id identifier rubyid_map_stats'>map_stats</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
788
|
+
<span class='symbol'>:avg_round_score</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>avgscoreperround</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
789
|
+
<span class='symbol'>:highest_game_score</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>highgamescore</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
790
|
+
<span class='symbol'>:highest_round_score</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>highroundscore</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
791
|
+
<span class='symbol'>:name</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fullname</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
792
|
+
<span class='symbol'>:rounds_played</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>roundsplayed</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
793
|
+
<span class='symbol'>:rounds_won</span> <span class='op'>=></span> <span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>roundswon</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
794
|
+
<span class='rbrace'>}</span>
|
795
|
+
<span class='ivar'>@scavenge_stats</span><span class='lbracket'>[</span><span class='symbol'>:maps</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_map_data'>map_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_map_stats'>map_stats</span>
|
796
|
+
|
797
|
+
<span class='kw'>end</span>
|
798
|
+
|
799
|
+
<span class='ivar'>@scavenge_stats</span><span class='lbracket'>[</span><span class='symbol'>:infected</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
800
|
+
<span class='id identifier rubyid_scavange_data'>scavange_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>infectedstats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>special</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_infected_data'>infected_data</span><span class='op'>|</span>
|
801
|
+
<span class='id identifier rubyid_infected_stats'>infected_stats</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
802
|
+
<span class='symbol'>:max_damage_per_life</span> <span class='op'>=></span> <span class='id identifier rubyid_infected_data'>infected_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>maxdmg1life</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
803
|
+
<span class='symbol'>:max_pours_interrupted</span> <span class='op'>=></span> <span class='id identifier rubyid_infected_data'>infected_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>maxpoursinterrupted</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span>
|
804
|
+
<span class='symbol'>:special_attacks</span> <span class='op'>=></span> <span class='id identifier rubyid_infected_data'>infected_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>specialattacks</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
805
|
+
<span class='rbrace'>}</span>
|
806
|
+
<span class='ivar'>@scavenge_stats</span><span class='lbracket'>[</span><span class='symbol'>:infected</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_infected_data'>infected_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_infected_stats'>infected_stats</span>
|
807
|
+
<span class='kw'>end</span>
|
808
|
+
<span class='kw'>end</span>
|
809
|
+
|
810
|
+
<span class='ivar'>@scavenge_stats</span>
|
811
|
+
<span class='kw'>end</span></pre>
|
812
|
+
</td>
|
813
|
+
</tr>
|
814
|
+
</table>
|
815
|
+
</div>
|
816
|
+
|
817
|
+
<div class="method_details ">
|
818
|
+
<h3 class="signature " id="survival_stats-instance_method">
|
819
|
+
|
820
|
+
- (<tt>Hash<String, Object></tt>) <strong>survival_stats</strong>
|
821
|
+
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
</h3><div class="docstring">
|
827
|
+
<div class="discussion">
|
828
|
+
|
829
|
+
<p>Returns a hash of Survival statistics for this user like revived teammates</p>
|
830
|
+
|
831
|
+
<p>If the Survival statistics haven't been parsed already, parsing is
|
832
|
+
done
|
833
|
+
now.</p>
|
834
|
+
|
835
|
+
<p>The XML layout for the Survival statistics for Left4Dead 2 differs a
|
836
|
+
bit
|
837
|
+
from Left4Dead's Survival statistics. So we have to use a different
|
838
|
+
way
|
839
|
+
of parsing for the maps and we use a different map
|
840
|
+
class
|
841
|
+
(<code>L4D2Map</code>) which holds the additional information
|
842
|
+
provided in
|
843
|
+
Left4Dead 2's statistics.</p>
|
844
|
+
|
845
|
+
|
846
|
+
</div>
|
847
|
+
</div>
|
848
|
+
<div class="tags">
|
849
|
+
|
850
|
+
<p class="tag_title">Returns:</p>
|
851
|
+
<ul class="return">
|
852
|
+
|
853
|
+
<li>
|
854
|
+
|
855
|
+
|
856
|
+
<span class='type'>(<tt>Hash<String, Object></tt>)</span>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
—
|
861
|
+
<div class='inline'>
|
862
|
+
<p>The Survival statistics of the player</p>
|
863
|
+
</div>
|
864
|
+
|
865
|
+
</li>
|
866
|
+
|
867
|
+
</ul>
|
868
|
+
|
869
|
+
</div><table class="source_code">
|
870
|
+
<tr>
|
871
|
+
<td>
|
872
|
+
<pre class="lines">
|
873
|
+
|
874
|
+
|
875
|
+
137
|
876
|
+
138
|
877
|
+
139
|
878
|
+
140
|
879
|
+
141
|
880
|
+
142
|
881
|
+
143
|
882
|
+
144
|
883
|
+
145
|
884
|
+
146
|
885
|
+
147
|
886
|
+
148
|
887
|
+
149
|
888
|
+
150</pre>
|
889
|
+
</td>
|
890
|
+
<td>
|
891
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 137</span>
|
892
|
+
|
893
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_survival_stats'>survival_stats</span>
|
894
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_public?'>public?</span>
|
895
|
+
|
896
|
+
<span class='kw'>if</span> <span class='ivar'>@survival_stats</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
897
|
+
<span class='kw'>super</span>
|
898
|
+
<span class='ivar'>@survival_stats</span><span class='lbracket'>[</span><span class='symbol'>:maps</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
899
|
+
<span class='ivar'>@xml_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>survival</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>maps</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>map</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_map_data'>map_data</span><span class='op'>|</span>
|
900
|
+
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='const'>L4D2Map</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_map_data'>map_data</span><span class='rparen'>)</span>
|
901
|
+
<span class='ivar'>@survival_stats</span><span class='lbracket'>[</span><span class='symbol'>:maps</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_map'>map</span>
|
902
|
+
<span class='kw'>end</span>
|
903
|
+
<span class='kw'>end</span>
|
904
|
+
|
905
|
+
<span class='ivar'>@survival_stats</span>
|
906
|
+
<span class='kw'>end</span></pre>
|
907
|
+
</td>
|
908
|
+
</tr>
|
909
|
+
</table>
|
910
|
+
</div>
|
911
|
+
|
912
|
+
<div class="method_details ">
|
913
|
+
<h3 class="signature " id="weapon_stats-instance_method">
|
914
|
+
|
915
|
+
- (<tt>Hash<String, Object></tt>) <strong>weapon_stats</strong>
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
|
921
|
+
</h3><div class="docstring">
|
922
|
+
<div class="discussion">
|
923
|
+
|
924
|
+
<p>Returns a hash of <code>L4D2Weapon</code> for this user containing all
|
925
|
+
Left4Dead 2
|
926
|
+
weapons</p>
|
927
|
+
|
928
|
+
<p>If the weapons haven't been parsed already, parsing is done now.</p>
|
929
|
+
|
930
|
+
|
931
|
+
</div>
|
932
|
+
</div>
|
933
|
+
<div class="tags">
|
934
|
+
|
935
|
+
<p class="tag_title">Returns:</p>
|
936
|
+
<ul class="return">
|
937
|
+
|
938
|
+
<li>
|
939
|
+
|
940
|
+
|
941
|
+
<span class='type'>(<tt>Hash<String, Object></tt>)</span>
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
—
|
946
|
+
<div class='inline'>
|
947
|
+
<p>The weapon statistics for this player</p>
|
948
|
+
</div>
|
949
|
+
|
950
|
+
</li>
|
951
|
+
|
952
|
+
</ul>
|
953
|
+
|
954
|
+
</div><table class="source_code">
|
955
|
+
<tr>
|
956
|
+
<td>
|
957
|
+
<pre class="lines">
|
958
|
+
|
959
|
+
|
960
|
+
158
|
961
|
+
159
|
962
|
+
160
|
963
|
+
161
|
964
|
+
162
|
965
|
+
163
|
966
|
+
164
|
967
|
+
165
|
968
|
+
166
|
969
|
+
167
|
970
|
+
168
|
971
|
+
169
|
972
|
+
170
|
973
|
+
171
|
974
|
+
172
|
975
|
+
173
|
976
|
+
174
|
977
|
+
175
|
978
|
+
176
|
979
|
+
177</pre>
|
980
|
+
</td>
|
981
|
+
<td>
|
982
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/l4d/l4d2_stats.rb', line 158</span>
|
983
|
+
|
984
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_weapon_stats'>weapon_stats</span>
|
985
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_public?'>public?</span>
|
986
|
+
|
987
|
+
<span class='kw'>if</span> <span class='ivar'>@weapon_stats</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
988
|
+
<span class='ivar'>@weapon_stats</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
989
|
+
<span class='ivar'>@xml_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stats</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>weapons</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_weapon_data'>weapon_data</span><span class='op'>|</span>
|
990
|
+
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_weapon_data'>weapon_data</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
991
|
+
|
992
|
+
<span class='kw'>unless</span> <span class='qwords_beg'>%w{</span><span class='tstring_content'>bilejars</span><span class='words_sep'> </span><span class='tstring_content'>molotov</span><span class='words_sep'> </span><span class='tstring_content'>pipes</span><span class='words_sep'>}</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_weapon_data'>weapon_data</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
993
|
+
<span class='id identifier rubyid_weapon'>weapon</span> <span class='op'>=</span> <span class='const'>L4D2Weapon</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='op'>*</span><span class='id identifier rubyid_weapon_data'>weapon_data</span>
|
994
|
+
<span class='kw'>else</span>
|
995
|
+
<span class='id identifier rubyid_weapon'>weapon</span> <span class='op'>=</span> <span class='const'>L4DExplosive</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='op'>*</span><span class='id identifier rubyid_weapon_data'>weapon_data</span>
|
996
|
+
<span class='kw'>end</span>
|
997
|
+
|
998
|
+
<span class='ivar'>@weapon_stats</span><span class='lbracket'>[</span><span class='id identifier rubyid_weapon_data'>weapon_data</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_weapon'>weapon</span>
|
999
|
+
<span class='kw'>end</span>
|
1000
|
+
<span class='kw'>end</span>
|
1001
|
+
|
1002
|
+
<span class='ivar'>@weapon_stats</span>
|
1003
|
+
<span class='kw'>end</span></pre>
|
1004
|
+
</td>
|
1005
|
+
</tr>
|
1006
|
+
</table>
|
1007
|
+
</div>
|
1008
|
+
|
1009
|
+
</div>
|
1010
|
+
|
1011
|
+
</div>
|
1012
|
+
|
1013
|
+
<div id="footer">
|
1014
|
+
Generated on Tue Jul 22 07:10:27 2014 by
|
1015
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1016
|
+
0.8.7.3 (ruby-2.0.0).
|
1017
|
+
</div>
|
1018
|
+
|
1019
|
+
</body>
|
1020
|
+
</html>
|