steam-condenser 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +7 -7
- data/README.md +9 -2
- data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
- data/doc/A2S_INFO_Packet.html +260 -0
- data/doc/A2S_PLAYER_Packet.html +295 -0
- data/doc/A2S_RULES_Packet.html +296 -0
- data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/doc/AbstractL4DStats.html +978 -0
- data/doc/AbstractL4DWeapon.html +734 -0
- data/doc/Achievement.html +660 -0
- data/doc/AlienSwarmMission.html +1557 -0
- data/doc/AlienSwarmStats.html +965 -0
- data/doc/AlienSwarmWeapon.html +640 -0
- data/doc/AppNews.html +1442 -0
- data/doc/C2M_CHECKMD5_Packet.html +341 -0
- data/doc/CSSMap.html +806 -0
- data/doc/CSSStats.html +825 -0
- data/doc/CSSWeapon.html +889 -0
- data/doc/Cacheable.html +913 -0
- data/doc/Cacheable/ClassMethods.html +696 -0
- data/doc/DefenseGridStats.html +2559 -0
- data/doc/DoDSClass.html +1264 -0
- data/doc/DoDSStats.html +486 -0
- data/doc/DoDSWeapon.html +806 -0
- data/doc/Dota2BetaInventory.html +339 -0
- data/doc/Dota2Inventory.html +339 -0
- data/doc/Dota2Item.html +388 -0
- data/doc/Dota2Stats.html +366 -0
- data/doc/GameAchievement.html +1257 -0
- data/doc/GameClass.html +321 -0
- data/doc/GameInventory.html +1363 -0
- data/doc/GameItem.html +1339 -0
- data/doc/GameLeaderboard.html +1609 -0
- data/doc/GameLeaderboardEntry.html +629 -0
- data/doc/GameSchema.html +568 -0
- data/doc/GameServer.html +2405 -0
- data/doc/GameStats.html +1461 -0
- data/doc/GameWeapon.html +590 -0
- data/doc/GoldSrcServer.html +740 -0
- data/doc/GoldSrcSocket.html +850 -0
- data/doc/ItemSchema.html +780 -0
- data/doc/L4D2Map.html +739 -0
- data/doc/L4D2Stats.html +930 -0
- data/doc/L4D2Weapon.html +486 -0
- data/doc/L4DExplosive.html +374 -0
- data/doc/L4DMap.html +776 -0
- data/doc/L4DStats.html +530 -0
- data/doc/L4DWeapon.html +296 -0
- data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
- data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
- data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
- data/doc/MasterServer.html +1070 -0
- data/doc/MasterServerSocket.html +293 -0
- data/doc/Module.html +194 -0
- data/doc/PacketFormatError.html +257 -0
- data/doc/Portal2Inventory.html +339 -0
- data/doc/Portal2Item.html +499 -0
- data/doc/Portal2Stats.html +368 -0
- data/doc/RCONAuthRequest.html +318 -0
- data/doc/RCONAuthResponse.html +305 -0
- data/doc/RCONBanError.html +247 -0
- data/doc/RCONExecRequest.html +318 -0
- data/doc/RCONExecResponse.html +407 -0
- data/doc/RCONGoldSrcRequest.html +363 -0
- data/doc/RCONGoldSrcResponse.html +367 -0
- data/doc/RCONNoAuthError.html +247 -0
- data/doc/RCONPacket.html +548 -0
- data/doc/RCONPacketFactory.html +300 -0
- data/doc/RCONSocket.html +669 -0
- data/doc/RCONTerminator.html +304 -0
- data/doc/RequestWithChallenge.html +233 -0
- data/doc/S2A_INFO2_Packet.html +371 -0
- data/doc/S2A_INFO_BasePacket.html +357 -0
- data/doc/S2A_INFO_DETAILED_Packet.html +370 -0
- data/doc/S2A_LOGSTRING_Packet.html +373 -0
- data/doc/S2A_PLAYER_Packet.html +417 -0
- data/doc/S2A_RULES_Packet.html +411 -0
- data/doc/S2C_CHALLENGE_Packet.html +370 -0
- data/doc/S2M_HEARTBEAT2_Packet.html +444 -0
- data/doc/Server.html +781 -0
- data/doc/SourceServer.html +776 -0
- data/doc/SourceSocket.html +366 -0
- data/doc/StatsAttribute.html +514 -0
- data/doc/SteamCondenser.html +155 -0
- data/doc/SteamCondenser/A2M_GET_SERVERS_BATCH2_Packet.html +413 -0
- data/doc/SteamCondenser/A2S_INFO_Packet.html +249 -0
- data/doc/SteamCondenser/A2S_PLAYER_Packet.html +281 -0
- data/doc/SteamCondenser/A2S_RULES_Packet.html +282 -0
- data/doc/SteamCondenser/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +250 -0
- data/doc/SteamCondenser/AbstractL4DStats.html +954 -0
- data/doc/SteamCondenser/AbstractL4DWeapon.html +703 -0
- data/doc/SteamCondenser/AlienSwarmMission.html +1494 -0
- data/doc/SteamCondenser/AlienSwarmStats.html +938 -0
- data/doc/SteamCondenser/AlienSwarmWeapon.html +614 -0
- data/doc/SteamCondenser/AppNews.html +1387 -0
- data/doc/SteamCondenser/C2M_CHECKMD5_Packet.html +327 -0
- data/doc/SteamCondenser/CSSMap.html +774 -0
- data/doc/SteamCondenser/CSSStats.html +799 -0
- data/doc/SteamCondenser/CSSWeapon.html +855 -0
- data/doc/SteamCondenser/Cacheable.html +698 -0
- data/doc/SteamCondenser/Cacheable/ClassMethods.html +531 -0
- data/doc/SteamCondenser/Community.html +134 -0
- data/doc/SteamCondenser/DefenseGridStats.html +2455 -0
- data/doc/SteamCondenser/DoDSClass.html +1209 -0
- data/doc/SteamCondenser/DoDSStats.html +470 -0
- data/doc/SteamCondenser/DoDSWeapon.html +774 -0
- data/doc/SteamCondenser/Error.html +156 -0
- data/doc/SteamCondenser/Error/PacketFormat.html +246 -0
- data/doc/SteamCondenser/Error/RCONBan.html +237 -0
- data/doc/SteamCondenser/Error/RCONNoAuth.html +236 -0
- data/doc/SteamCondenser/Error/Timeout.html +238 -0
- data/doc/SteamCondenser/Error/WebApi.html +339 -0
- data/doc/SteamCondenser/GameAchievement.html +1210 -0
- data/doc/SteamCondenser/GameClass.html +306 -0
- data/doc/SteamCondenser/GameInventory.html +1236 -0
- data/doc/SteamCondenser/GameItem.html +1282 -0
- data/doc/SteamCondenser/GameLeaderboard.html +1562 -0
- data/doc/SteamCondenser/GameLeaderboardEntry.html +604 -0
- data/doc/SteamCondenser/GameServer.html +2337 -0
- data/doc/SteamCondenser/GameStats.html +1416 -0
- data/doc/SteamCondenser/GameWeapon.html +566 -0
- data/doc/SteamCondenser/GoldSrcServer.html +716 -0
- data/doc/SteamCondenser/GoldSrcSocket.html +831 -0
- data/doc/SteamCondenser/L4D2Map.html +713 -0
- data/doc/SteamCondenser/L4D2Stats.html +906 -0
- data/doc/SteamCondenser/L4D2Weapon.html +466 -0
- data/doc/SteamCondenser/L4DExplosive.html +362 -0
- data/doc/SteamCondenser/L4DMap.html +746 -0
- data/doc/SteamCondenser/L4DStats.html +513 -0
- data/doc/SteamCondenser/L4DWeapon.html +284 -0
- data/doc/SteamCondenser/M2A_SERVER_BATCH_Packet.html +415 -0
- data/doc/SteamCondenser/M2C_ISVALIDMD5_Packet.html +368 -0
- data/doc/SteamCondenser/M2S_REQUESTRESTART_Packet.html +367 -0
- data/doc/SteamCondenser/MasterServer.html +1046 -0
- data/doc/SteamCondenser/MasterServerSocket.html +282 -0
- data/doc/SteamCondenser/Portal2Inventory.html +217 -0
- data/doc/SteamCondenser/Portal2Item.html +483 -0
- data/doc/SteamCondenser/Portal2Stats.html +353 -0
- data/doc/SteamCondenser/RCONAuthRequest.html +306 -0
- data/doc/SteamCondenser/RCONAuthResponse.html +293 -0
- data/doc/SteamCondenser/RCONExecRequest.html +306 -0
- data/doc/SteamCondenser/RCONExecResponse.html +392 -0
- data/doc/SteamCondenser/RCONGoldSrcRequest.html +349 -0
- data/doc/SteamCondenser/RCONGoldSrcResponse.html +354 -0
- data/doc/SteamCondenser/RCONPacket.html +530 -0
- data/doc/SteamCondenser/RCONPacketFactory.html +293 -0
- data/doc/SteamCondenser/RCONSocket.html +649 -0
- data/doc/SteamCondenser/RCONTerminator.html +292 -0
- data/doc/SteamCondenser/RequestWithChallenge.html +223 -0
- data/doc/SteamCondenser/S2A_INFO2_Packet.html +359 -0
- data/doc/SteamCondenser/S2A_INFO_BasePacket.html +342 -0
- data/doc/SteamCondenser/S2A_INFO_DETAILED_Packet.html +358 -0
- data/doc/SteamCondenser/S2A_LOGSTRING_Packet.html +358 -0
- data/doc/SteamCondenser/S2A_PLAYER_Packet.html +402 -0
- data/doc/SteamCondenser/S2A_RULES_Packet.html +396 -0
- data/doc/SteamCondenser/S2C_CHALLENGE_Packet.html +356 -0
- data/doc/SteamCondenser/S2M_HEARTBEAT2_Packet.html +430 -0
- data/doc/SteamCondenser/Server.html +754 -0
- data/doc/SteamCondenser/Servers.html +133 -0
- data/doc/SteamCondenser/SourceServer.html +752 -0
- data/doc/SteamCondenser/SourceSocket.html +355 -0
- data/doc/SteamCondenser/SteamGame.html +1802 -0
- data/doc/SteamCondenser/SteamGroup.html +969 -0
- data/doc/SteamCondenser/SteamId.html +4242 -0
- data/doc/SteamCondenser/SteamPacket.html +456 -0
- data/doc/SteamCondenser/SteamPacketFactory.html +521 -0
- data/doc/SteamCondenser/SteamPlayer.html +1696 -0
- data/doc/SteamCondenser/SteamSocket.html +679 -0
- data/doc/SteamCondenser/TF2BetaInventory.html +198 -0
- data/doc/SteamCondenser/TF2Class.html +1145 -0
- data/doc/SteamCondenser/TF2ClassFactory.html +263 -0
- data/doc/SteamCondenser/TF2Engineer.html +534 -0
- data/doc/SteamCondenser/TF2GoldenWrench.html +731 -0
- data/doc/SteamCondenser/TF2Inventory.html +217 -0
- data/doc/SteamCondenser/TF2Item.html +482 -0
- data/doc/SteamCondenser/TF2Medic.html +445 -0
- data/doc/SteamCondenser/TF2Sniper.html +357 -0
- data/doc/SteamCondenser/TF2Spy.html +531 -0
- data/doc/SteamCondenser/TF2Stats.html +670 -0
- data/doc/SteamCondenser/TimeoutError.html +249 -0
- data/doc/SteamCondenser/WebApi.html +999 -0
- data/doc/SteamCondenser/XMLData.html +171 -0
- data/doc/SteamCondenserError.html +153 -0
- data/doc/SteamGame.html +1859 -0
- data/doc/SteamGroup.html +1012 -0
- data/doc/SteamId.html +4369 -0
- data/doc/SteamPacket.html +469 -0
- data/doc/SteamPacketFactory.html +545 -0
- data/doc/SteamPlayer.html +1766 -0
- data/doc/SteamSocket.html +699 -0
- data/doc/StringIO.html +947 -0
- data/doc/TF2BetaInventory.html +315 -0
- data/doc/TF2Class.html +1194 -0
- data/doc/TF2ClassFactory.html +273 -0
- data/doc/TF2Engineer.html +558 -0
- data/doc/TF2GoldenWrench.html +760 -0
- data/doc/TF2Inventory.html +339 -0
- data/doc/TF2Item.html +499 -0
- data/doc/TF2Medic.html +465 -0
- data/doc/TF2Sniper.html +373 -0
- data/doc/TF2Spy.html +555 -0
- data/doc/TF2Stats.html +696 -0
- data/doc/WebApi.html +1021 -0
- data/doc/WebApiError.html +347 -0
- data/doc/XMLData.html +253 -0
- data/doc/_index.html +717 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.LICENSE.html +100 -0
- data/doc/file.README.html +136 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +136 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +3988 -0
- data/doc/methods_list.html +3900 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/steam-condenser/version.rb +1 -1
- data/lib/steam/community/cacheable.rb +105 -44
- data/lib/steam/community/dota2/dota2_beta_inventory.rb +27 -0
- data/lib/steam/community/dota2/dota2_inventory.rb +27 -0
- data/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/lib/steam/community/game_inventory.rb +18 -16
- data/lib/steam/community/game_leaderboard.rb +2 -2
- data/lib/steam/community/game_stats.rb +1 -1
- data/lib/steam/community/portal2/portal2_inventory.rb +11 -9
- data/lib/steam/community/steam_game.rb +0 -2
- data/lib/steam/community/steam_group.rb +2 -7
- data/lib/steam/community/steam_id.rb +2 -7
- data/lib/steam/community/tf2/tf2_beta_inventory.rb +11 -8
- data/lib/steam/community/tf2/tf2_inventory.rb +11 -9
- data/lib/steam/community/xml_data.rb +8 -1
- data/lib/steam/packets/a2s_player_packet.rb +1 -1
- data/lib/steam/packets/a2s_rules_packet.rb +1 -1
- data/lib/steam/servers/master_server.rb +3 -2
- data/lib/steam/sockets/rcon_socket.rb +1 -2
- data/pkg/steam-condenser-1.2.0.gem +0 -0
- data/pkg/steam-condenser-1.2.0/Gemfile +3 -0
- data/pkg/steam-condenser-1.2.0/Gemfile.lock +30 -0
- data/pkg/steam-condenser-1.2.0/LICENSE +25 -0
- data/pkg/steam-condenser-1.2.0/README.md +47 -0
- data/pkg/steam-condenser-1.2.0/Rakefile +46 -0
- data/pkg/steam-condenser-1.2.0/lib/core_ext/stringio.rb +91 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/packet_format_error.rb +21 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/steam_condenser_error.rb +11 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_stats.rb +179 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/cacheable.rb +137 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_stats.rb +136 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/defense_grid/defense_grid_stats.rb +237 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_stats.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_inventory.rb +152 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_item.rb +99 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard.rb +201 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_stats.rb +173 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_stats.rb +165 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_stats.rb +71 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_inventory.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_item.rb +47 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_stats.rb +32 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_game.rb +182 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_group.rb +135 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_id.rb +513 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_beta_inventory.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_inventory.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_item.rb +47 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_stats.rb +76 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/web_api.rb +129 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/xml_data.rb +17 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/c2m_checkmd5_packet.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info2_packet.rb +62 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_base_packet.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_detailed_packet.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2m_heartbeat2_packet.rb +71 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet_factory.rb +108 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/game_server.rb +392 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/master_server.rb +182 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/server.rb +104 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/source_server.rb +98 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/master_server_socket.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/rcon_socket.rb +94 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/source_socket.rb +78 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/steam_socket.rb +86 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.2.0/steam-condenser.gemspec +25 -0
- data/pkg/steam-condenser-1.2.0/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/valve-members.xml +231 -0
- data/pkg/steam-condenser-1.2.0/test/helper.rb +45 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_group.rb +83 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_id.rb +111 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_web_api.rb +98 -0
- data/pkg/steam-condenser-1.2.0/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_source_server.rb +126 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_rcon_socket.rb +109 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_steam_socket.rb +97 -0
- data/steam-condenser.gemspec +3 -3
- data/test/steam/communtiy/test_cacheable.rb +100 -0
- data/test/steam/servers/test_master_server.rb +3 -3
- metadata +366 -15
@@ -0,0 +1,134 @@
|
|
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
|
+
Module: SteamCondenser::Community
|
8
|
+
|
9
|
+
— Steam Condenser – Ruby API
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" 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 (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Community</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>Module: SteamCondenser::Community
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<dt class="r1 last">Defined in:</dt>
|
82
|
+
<dd class="r1 last">lib/steam-condenser/community.rb</dd>
|
83
|
+
|
84
|
+
</dl>
|
85
|
+
<div class="clear"></div>
|
86
|
+
|
87
|
+
<h2>Overview</h2><div class="docstring">
|
88
|
+
<div class="discussion">
|
89
|
+
<p>This module is used as a wrapper around Steam Condenser's Steam Community
|
90
|
+
classes</p>
|
91
|
+
|
92
|
+
<p>It does not provide any own functionality, but this file is used to easily
|
93
|
+
require classes to interact with the Steam Community</p>
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<div class="tags">
|
99
|
+
|
100
|
+
<p class="tag_title">Author:</p>
|
101
|
+
<ul class="author">
|
102
|
+
|
103
|
+
<li>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<div class='inline'><p>Sebastian Staudt</p>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
</li>
|
113
|
+
|
114
|
+
</ul>
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div id="footer">
|
128
|
+
Generated on Sat Jul 21 13:09:29 2012 by
|
129
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
+
0.8.2.1 (ruby-1.8.7).
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</body>
|
134
|
+
</html>
|
@@ -0,0 +1,2455 @@
|
|
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: SteamCondenser::DefenseGridStats
|
8
|
+
|
9
|
+
— Steam Condenser – Ruby API
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../_index.html">Index (D)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">DefenseGridStats</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: SteamCondenser::DefenseGridStats
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next"><span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></li>
|
75
|
+
|
76
|
+
<li class="next">SteamCondenser::DefenseGridStats</li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
80
|
+
|
81
|
+
</dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<dt class="r2 last">Defined in:</dt>
|
92
|
+
<dd class="r2 last">lib/steam/community/defense_grid/defense_grid_stats.rb</dd>
|
93
|
+
|
94
|
+
</dl>
|
95
|
+
<div class="clear"></div>
|
96
|
+
|
97
|
+
<h2>Overview</h2><div class="docstring">
|
98
|
+
<div class="discussion">
|
99
|
+
<p>This class represents the game statistics for a single user in Defense
|
100
|
+
Grid: The Awakening</p>
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
<div class="tags">
|
106
|
+
|
107
|
+
<h3>Author:</h3>
|
108
|
+
<ul class="author">
|
109
|
+
|
110
|
+
<li>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
<div class='inline'><p>Sebastian Staudt</p>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</li>
|
120
|
+
|
121
|
+
</ul>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
128
|
+
<ul class="summary">
|
129
|
+
|
130
|
+
<li class="public ">
|
131
|
+
<span class="summary_signature">
|
132
|
+
|
133
|
+
<a href="#bronze_medals-instance_method" title="#bronze_medals (instance method)">- (Fixnum) <strong>bronze_medals</strong> </a>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
<span class="note title readonly">readonly</span>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<span class="summary_desc"><div class='inline'><p>Returns the bronze medals won by this player.</p>
|
150
|
+
</div></span>
|
151
|
+
|
152
|
+
</li>
|
153
|
+
|
154
|
+
|
155
|
+
<li class="public ">
|
156
|
+
<span class="summary_signature">
|
157
|
+
|
158
|
+
<a href="#damage_campaign-instance_method" title="#damage_campaign (instance method)">- (Float) <strong>damage_campaign</strong> </a>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</span>
|
163
|
+
|
164
|
+
|
165
|
+
<span class="note title readonly">readonly</span>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<span class="summary_desc"><div class='inline'><p>Returns the damage done during the campaign by this player.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#damage_challenge-instance_method" title="#damage_challenge (instance method)">- (Float) <strong>damage_challenge</strong> </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
<span class="note title readonly">readonly</span>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<span class="summary_desc"><div class='inline'><p>Returns the damage done during challenges by this player.</p>
|
200
|
+
</div></span>
|
201
|
+
|
202
|
+
</li>
|
203
|
+
|
204
|
+
|
205
|
+
<li class="public ">
|
206
|
+
<span class="summary_signature">
|
207
|
+
|
208
|
+
<a href="#damage_done-instance_method" title="#damage_done (instance method)">- (Float) <strong>damage_done</strong> </a>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
</span>
|
213
|
+
|
214
|
+
|
215
|
+
<span class="note title readonly">readonly</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<span class="summary_desc"><div class='inline'><p>Returns the damage done by this player.</p>
|
225
|
+
</div></span>
|
226
|
+
|
227
|
+
</li>
|
228
|
+
|
229
|
+
|
230
|
+
<li class="public ">
|
231
|
+
<span class="summary_signature">
|
232
|
+
|
233
|
+
<a href="#encountered-instance_method" title="#encountered (instance method)">- (Fixnum) <strong>encountered</strong> </a>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</span>
|
238
|
+
|
239
|
+
|
240
|
+
<span class="note title readonly">readonly</span>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'><p>Returns the aliens encountered by this player.</p>
|
250
|
+
</div></span>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
|
255
|
+
<li class="public ">
|
256
|
+
<span class="summary_signature">
|
257
|
+
|
258
|
+
<a href="#gold_medals-instance_method" title="#gold_medals (instance method)">- (Fixnum) <strong>gold_medals</strong> </a>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
</span>
|
263
|
+
|
264
|
+
|
265
|
+
<span class="note title readonly">readonly</span>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
<span class="summary_desc"><div class='inline'><p>Returns the gold medals won by this player.</p>
|
275
|
+
</div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#heat_damage-instance_method" title="#heat_damage (instance method)">- (Float) <strong>heat_damage</strong> </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
<span class="note title readonly">readonly</span>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<span class="summary_desc"><div class='inline'><p>Returns the heat damage done by this player.</p>
|
300
|
+
</div></span>
|
301
|
+
|
302
|
+
</li>
|
303
|
+
|
304
|
+
|
305
|
+
<li class="public ">
|
306
|
+
<span class="summary_signature">
|
307
|
+
|
308
|
+
<a href="#interest-instance_method" title="#interest (instance method)">- (Fixnum) <strong>interest</strong> </a>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
</span>
|
313
|
+
|
314
|
+
|
315
|
+
<span class="note title readonly">readonly</span>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<span class="summary_desc"><div class='inline'><p>Returns the interest gained by the player.</p>
|
325
|
+
</div></span>
|
326
|
+
|
327
|
+
</li>
|
328
|
+
|
329
|
+
|
330
|
+
<li class="public ">
|
331
|
+
<span class="summary_signature">
|
332
|
+
|
333
|
+
<a href="#killed-instance_method" title="#killed (instance method)">- (Fixnum) <strong>killed</strong> </a>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</span>
|
338
|
+
|
339
|
+
|
340
|
+
<span class="note title readonly">readonly</span>
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<span class="summary_desc"><div class='inline'><p>Returns the aliens killed by the player.</p>
|
350
|
+
</div></span>
|
351
|
+
|
352
|
+
</li>
|
353
|
+
|
354
|
+
|
355
|
+
<li class="public ">
|
356
|
+
<span class="summary_signature">
|
357
|
+
|
358
|
+
<a href="#killed_campaign-instance_method" title="#killed_campaign (instance method)">- (Fixnum) <strong>killed_campaign</strong> </a>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</span>
|
363
|
+
|
364
|
+
|
365
|
+
<span class="note title readonly">readonly</span>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
<span class="summary_desc"><div class='inline'><p>Returns the aliens killed during the campaign by the player.</p>
|
375
|
+
</div></span>
|
376
|
+
|
377
|
+
</li>
|
378
|
+
|
379
|
+
|
380
|
+
<li class="public ">
|
381
|
+
<span class="summary_signature">
|
382
|
+
|
383
|
+
<a href="#killed_challenge-instance_method" title="#killed_challenge (instance method)">- (Fixnum) <strong>killed_challenge</strong> </a>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
</span>
|
388
|
+
|
389
|
+
|
390
|
+
<span class="note title readonly">readonly</span>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
<span class="summary_desc"><div class='inline'><p>Returns the aliens killed during challenges by the player.</p>
|
400
|
+
</div></span>
|
401
|
+
|
402
|
+
</li>
|
403
|
+
|
404
|
+
|
405
|
+
<li class="public ">
|
406
|
+
<span class="summary_signature">
|
407
|
+
|
408
|
+
<a href="#levels_played-instance_method" title="#levels_played (instance method)">- (Fixnum) <strong>levels_played</strong> </a>
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
</span>
|
413
|
+
|
414
|
+
|
415
|
+
<span class="note title readonly">readonly</span>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels played by the player.</p>
|
425
|
+
</div></span>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
|
430
|
+
<li class="public ">
|
431
|
+
<span class="summary_signature">
|
432
|
+
|
433
|
+
<a href="#levels_played_campaign-instance_method" title="#levels_played_campaign (instance method)">- (Fixnum) <strong>levels_played_campaign</strong> </a>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</span>
|
438
|
+
|
439
|
+
|
440
|
+
<span class="note title readonly">readonly</span>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels played during the campaign by the player.</p>
|
450
|
+
</div></span>
|
451
|
+
|
452
|
+
</li>
|
453
|
+
|
454
|
+
|
455
|
+
<li class="public ">
|
456
|
+
<span class="summary_signature">
|
457
|
+
|
458
|
+
<a href="#levels_played_challenge-instance_method" title="#levels_played_challenge (instance method)">- (Fixnum) <strong>levels_played_challenge</strong> </a>
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
</span>
|
463
|
+
|
464
|
+
|
465
|
+
<span class="note title readonly">readonly</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels played during challenges by the player.</p>
|
475
|
+
</div></span>
|
476
|
+
|
477
|
+
</li>
|
478
|
+
|
479
|
+
|
480
|
+
<li class="public ">
|
481
|
+
<span class="summary_signature">
|
482
|
+
|
483
|
+
<a href="#levels_won-instance_method" title="#levels_won (instance method)">- (Fixnum) <strong>levels_won</strong> </a>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
</span>
|
488
|
+
|
489
|
+
|
490
|
+
<span class="note title readonly">readonly</span>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels won by the player.</p>
|
500
|
+
</div></span>
|
501
|
+
|
502
|
+
</li>
|
503
|
+
|
504
|
+
|
505
|
+
<li class="public ">
|
506
|
+
<span class="summary_signature">
|
507
|
+
|
508
|
+
<a href="#levels_won_campaign-instance_method" title="#levels_won_campaign (instance method)">- (Fixnum) <strong>levels_won_campaign</strong> </a>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
</span>
|
513
|
+
|
514
|
+
|
515
|
+
<span class="note title readonly">readonly</span>
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels won during the campaign by the player.</p>
|
525
|
+
</div></span>
|
526
|
+
|
527
|
+
</li>
|
528
|
+
|
529
|
+
|
530
|
+
<li class="public ">
|
531
|
+
<span class="summary_signature">
|
532
|
+
|
533
|
+
<a href="#levels_won_challenge-instance_method" title="#levels_won_challenge (instance method)">- (Fixnum) <strong>levels_won_challenge</strong> </a>
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
</span>
|
538
|
+
|
539
|
+
|
540
|
+
<span class="note title readonly">readonly</span>
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of levels won during challenges by the player.</p>
|
550
|
+
</div></span>
|
551
|
+
|
552
|
+
</li>
|
553
|
+
|
554
|
+
|
555
|
+
<li class="public ">
|
556
|
+
<span class="summary_signature">
|
557
|
+
|
558
|
+
<a href="#orbital_laser_damage-instance_method" title="#orbital_laser_damage (instance method)">- (Fixnum) <strong>orbital_laser_damage</strong> </a>
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
</span>
|
563
|
+
|
564
|
+
|
565
|
+
<span class="note title readonly">readonly</span>
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
<span class="summary_desc"><div class='inline'><p>Returns the number of times the orbital lasers has been fired by the
|
575
|
+
player.</p>
|
576
|
+
</div></span>
|
577
|
+
|
578
|
+
</li>
|
579
|
+
|
580
|
+
|
581
|
+
<li class="public ">
|
582
|
+
<span class="summary_signature">
|
583
|
+
|
584
|
+
<a href="#orbital_laser_fired-instance_method" title="#orbital_laser_fired (instance method)">- (Float) <strong>orbital_laser_fired</strong> </a>
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
</span>
|
589
|
+
|
590
|
+
|
591
|
+
<span class="note title readonly">readonly</span>
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
<span class="summary_desc"><div class='inline'><p>Returns the damage dealt by the orbital laser.</p>
|
601
|
+
</div></span>
|
602
|
+
|
603
|
+
</li>
|
604
|
+
|
605
|
+
|
606
|
+
<li class="public ">
|
607
|
+
<span class="summary_signature">
|
608
|
+
|
609
|
+
<a href="#resources-instance_method" title="#resources (instance method)">- (Fixnum) <strong>resources</strong> </a>
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
</span>
|
614
|
+
|
615
|
+
|
616
|
+
<span class="note title readonly">readonly</span>
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
<span class="summary_desc"><div class='inline'><p>Returns the amount of resources harvested by the player.</p>
|
626
|
+
</div></span>
|
627
|
+
|
628
|
+
</li>
|
629
|
+
|
630
|
+
|
631
|
+
<li class="public ">
|
632
|
+
<span class="summary_signature">
|
633
|
+
|
634
|
+
<a href="#silver_medals-instance_method" title="#silver_medals (instance method)">- (Fixnum) <strong>silver_medals</strong> </a>
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
</span>
|
639
|
+
|
640
|
+
|
641
|
+
<span class="note title readonly">readonly</span>
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
<span class="summary_desc"><div class='inline'><p>Returns the silver medals won by this player.</p>
|
651
|
+
</div></span>
|
652
|
+
|
653
|
+
</li>
|
654
|
+
|
655
|
+
|
656
|
+
<li class="public ">
|
657
|
+
<span class="summary_signature">
|
658
|
+
|
659
|
+
<a href="#time_played-instance_method" title="#time_played (instance method)">- (Float) <strong>time_played</strong> </a>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</span>
|
664
|
+
|
665
|
+
|
666
|
+
<span class="note title readonly">readonly</span>
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
<span class="summary_desc"><div class='inline'><p>Returns the time played in seconds by the player.</p>
|
676
|
+
</div></span>
|
677
|
+
|
678
|
+
</li>
|
679
|
+
|
680
|
+
|
681
|
+
</ul>
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></h3>
|
688
|
+
<p class="inherited"><span class='object_link'><a href="GameStats.html#game-instance_method" title="SteamCondenser::GameStats#game (method)">#game</a></span>, <span class='object_link'><a href="GameStats.html#hours_played-instance_method" title="SteamCondenser::GameStats#hours_played (method)">#hours_played</a></span>, <span class='object_link'><a href="GameStats.html#privacy_state-instance_method" title="SteamCondenser::GameStats#privacy_state (method)">#privacy_state</a></span>, <span class='object_link'><a href="GameStats.html#user-instance_method" title="SteamCondenser::GameStats#user (method)">#user</a></span></p>
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
<h2>
|
693
|
+
Instance Method Summary
|
694
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
695
|
+
</h2>
|
696
|
+
|
697
|
+
<ul class="summary">
|
698
|
+
|
699
|
+
<li class="public ">
|
700
|
+
<span class="summary_signature">
|
701
|
+
|
702
|
+
<a href="#alien_stats-instance_method" title="#alien_stats (instance method)">- (Hash<String, Array<Fixnum>>) <strong>alien_stats</strong> </a>
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
</span>
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
<span class="summary_desc"><div class='inline'><p>Returns stats about the aliens encountered by the player.</p>
|
716
|
+
</div></span>
|
717
|
+
|
718
|
+
</li>
|
719
|
+
|
720
|
+
|
721
|
+
<li class="public ">
|
722
|
+
<span class="summary_signature">
|
723
|
+
|
724
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (DefenseGridStats) <strong>initialize</strong>(steam_id) </a>
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
</span>
|
729
|
+
|
730
|
+
<span class="note title constructor">constructor</span>
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
<span class="summary_desc"><div class='inline'><p>Creates a <code>DefenseGridStats</code> instance by calling the super constructor
|
740
|
+
with the game name <code>'defensegrid:awakening'</code>.</p>
|
741
|
+
</div></span>
|
742
|
+
|
743
|
+
</li>
|
744
|
+
|
745
|
+
|
746
|
+
<li class="public ">
|
747
|
+
<span class="summary_signature">
|
748
|
+
|
749
|
+
<a href="#tower_stats-instance_method" title="#tower_stats (instance method)">- (Hash<String, Array<Fixnum>>) <strong>tower_stats</strong> </a>
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
</span>
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
<span class="summary_desc"><div class='inline'><p>Returns stats about the towers built by the player.</p>
|
763
|
+
</div></span>
|
764
|
+
|
765
|
+
</li>
|
766
|
+
|
767
|
+
|
768
|
+
</ul>
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></h3>
|
780
|
+
<p class="inherited"><span class='object_link'><a href="GameStats.html#achievements-instance_method" title="SteamCondenser::GameStats#achievements (method)">#achievements</a></span>, <span class='object_link'><a href="GameStats.html#achievements_done-instance_method" title="SteamCondenser::GameStats#achievements_done (method)">#achievements_done</a></span>, <span class='object_link'><a href="GameStats.html#achievements_percentage-instance_method" title="SteamCondenser::GameStats#achievements_percentage (method)">#achievements_percentage</a></span>, <span class='object_link'><a href="GameStats.html#base_url-class_method" title="SteamCondenser::GameStats.base_url (method)">base_url</a></span>, <span class='object_link'><a href="GameStats.html#base_url-instance_method" title="SteamCondenser::GameStats#base_url (method)">#base_url</a></span>, <span class='object_link'><a href="GameStats.html#create_game_stats-class_method" title="SteamCondenser::GameStats.create_game_stats (method)">create_game_stats</a></span>, <span class='object_link'><a href="GameStats.html#public%3F-instance_method" title="SteamCondenser::GameStats#public? (method)">#public?</a></span></p>
|
781
|
+
|
782
|
+
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="XMLData.html" title="SteamCondenser::XMLData (module)">XMLData</a></span></h3>
|
790
|
+
<p class="inherited"><span class='object_link'><a href="XMLData.html#parse-instance_method" title="SteamCondenser::XMLData#parse (method)">#parse</a></span></p>
|
791
|
+
<div id="constructor_details" class="method_details_list">
|
792
|
+
<h2>Constructor Details</h2>
|
793
|
+
|
794
|
+
<div class="method_details first">
|
795
|
+
<p class="signature first" id="initialize-instance_method">
|
796
|
+
|
797
|
+
- (<tt><span class='object_link'><a href="" title="SteamCondenser::DefenseGridStats (class)">DefenseGridStats</a></span></tt>) <strong>initialize</strong>(steam_id)
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
</p><div class="docstring">
|
802
|
+
<div class="discussion">
|
803
|
+
<p>Creates a <code>DefenseGridStats</code> instance by calling the super constructor
|
804
|
+
with the game name <code>'defensegrid:awakening'</code></p>
|
805
|
+
|
806
|
+
|
807
|
+
</div>
|
808
|
+
</div>
|
809
|
+
<div class="tags">
|
810
|
+
<h3>Parameters:</h3>
|
811
|
+
<ul class="param">
|
812
|
+
|
813
|
+
<li>
|
814
|
+
|
815
|
+
<span class='name'>steam_id</span>
|
816
|
+
|
817
|
+
|
818
|
+
<span class='type'>(<tt>String</tt>, <tt>Fixnum</tt>)</span>
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
—
|
823
|
+
<div class='inline'><p>The custom URL or the 64bit Steam ID of
|
824
|
+
the user</p>
|
825
|
+
</div>
|
826
|
+
|
827
|
+
</li>
|
828
|
+
|
829
|
+
</ul>
|
830
|
+
|
831
|
+
|
832
|
+
</div><table class="source_code">
|
833
|
+
<tr>
|
834
|
+
<td>
|
835
|
+
<pre class="lines">
|
836
|
+
|
837
|
+
|
838
|
+
132
|
839
|
+
133
|
840
|
+
134
|
841
|
+
135
|
842
|
+
136
|
843
|
+
137
|
844
|
+
138
|
845
|
+
139
|
846
|
+
140
|
847
|
+
141
|
848
|
+
142
|
849
|
+
143
|
850
|
+
144
|
851
|
+
145
|
852
|
+
146
|
853
|
+
147
|
854
|
+
148
|
855
|
+
149
|
856
|
+
150
|
857
|
+
151
|
858
|
+
152
|
859
|
+
153
|
860
|
+
154
|
861
|
+
155
|
862
|
+
156
|
863
|
+
157
|
864
|
+
158
|
865
|
+
159
|
866
|
+
160
|
867
|
+
161</pre>
|
868
|
+
</td>
|
869
|
+
<td>
|
870
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 132</span>
|
871
|
+
|
872
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
|
873
|
+
<span class='rubyid_super super kw'>super</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='comma token'>,</span> <span class='string val'>'defensegrid:awakening'</span><span class='rparen token'>)</span>
|
874
|
+
|
875
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_public? fid id'>public?</span>
|
876
|
+
<span class='rubyid_general_data identifier id'>general_data</span> <span class='assign token'>=</span> <span class='rubyid_@xml_data ivar id'>@xml_data</span><span class='lbrack token'>[</span><span class='string val'>'stats'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'general'</span><span class='rbrack token'>]</span>
|
877
|
+
|
878
|
+
<span class='rubyid_@bronze_medals ivar id'>@bronze_medals</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'bronze_medals_won'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
879
|
+
<span class='rubyid_@silver_medals ivar id'>@silver_medals</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'silver_medals_won'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
880
|
+
<span class='rubyid_@gold_medals ivar id'>@gold_medals</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'gold_medals_won'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
881
|
+
<span class='rubyid_@levels_played ivar id'>@levels_played</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_played_total'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
882
|
+
<span class='rubyid_@levels_played_campaign ivar id'>@levels_played_campaign</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_played_campaign'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
883
|
+
<span class='rubyid_@levels_played_challenge ivar id'>@levels_played_challenge</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_played_challenge'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
884
|
+
<span class='rubyid_@levels_won ivar id'>@levels_won</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_won_total'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
885
|
+
<span class='rubyid_@levels_won_campaign ivar id'>@levels_won_campaign</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_won_campaign'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
886
|
+
<span class='rubyid_@levels_won_challenge ivar id'>@levels_won_challenge</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'levels_won_challenge'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
887
|
+
<span class='rubyid_@encountered ivar id'>@encountered</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'total_aliens_encountered'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
888
|
+
<span class='rubyid_@killed ivar id'>@killed</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'total_aliens_killed'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
889
|
+
<span class='rubyid_@killed_campaign ivar id'>@killed_campaign</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'total_aliens_killed_campaign'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
890
|
+
<span class='rubyid_@killed_challenge ivar id'>@killed_challenge</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'total_aliens_killed_challenge'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
891
|
+
<span class='rubyid_@resources ivar id'>@resources</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'resources_recovered'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
892
|
+
<span class='rubyid_@heat_damage ivar id'>@heat_damage</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'heatdamage'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
893
|
+
<span class='rubyid_@time_played ivar id'>@time_played</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'time_played'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
894
|
+
<span class='rubyid_@interest ivar id'>@interest</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'interest_gained'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
895
|
+
<span class='rubyid_@damage_done ivar id'>@damage_done</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'tower_damage_total'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
896
|
+
<span class='rubyid_@damage_campaign ivar id'>@damage_campaign</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'tower_damage_total_campaign'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
897
|
+
<span class='rubyid_@damage_challenge ivar id'>@damage_challenge</span> <span class='assign token'>=</span> <span class='rubyid_general_data identifier id'>general_data</span><span class='lbrack token'>[</span><span class='string val'>'tower_damage_total_challenge'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
898
|
+
<span class='rubyid_@orbital_laser_fired ivar id'>@orbital_laser_fired</span> <span class='assign token'>=</span> <span class='rubyid_@xml_data ivar id'>@xml_data</span><span class='lbrack token'>[</span><span class='string val'>'stats'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'orbitallaser'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'fired'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
899
|
+
<span class='rubyid_@orbital_laser_damage ivar id'>@orbital_laser_damage</span> <span class='assign token'>=</span> <span class='rubyid_@xml_data ivar id'>@xml_data</span><span class='lbrack token'>[</span><span class='string val'>'stats'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'orbitallaser'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'damage'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
900
|
+
<span class='rubyid_end end kw'>end</span>
|
901
|
+
<span class='rubyid_end end kw'>end</span>
|
902
|
+
</pre>
|
903
|
+
</td>
|
904
|
+
</tr>
|
905
|
+
</table>
|
906
|
+
</div>
|
907
|
+
|
908
|
+
</div>
|
909
|
+
|
910
|
+
<div id="instance_attr_details" class="attr_details">
|
911
|
+
<h2>Instance Attribute Details</h2>
|
912
|
+
|
913
|
+
|
914
|
+
<span id=""></span>
|
915
|
+
<span id="bronze_medals-instance_method"></span>
|
916
|
+
<div class="method_details first">
|
917
|
+
<p class="signature first" id="bronze_medals-instance_method">
|
918
|
+
|
919
|
+
- (<tt>Fixnum</tt>) <strong>bronze_medals</strong> <span class="extras">(readonly)</span>
|
920
|
+
|
921
|
+
|
922
|
+
|
923
|
+
</p><div class="docstring">
|
924
|
+
<div class="discussion">
|
925
|
+
<p>Returns the bronze medals won by this player</p>
|
926
|
+
|
927
|
+
|
928
|
+
</div>
|
929
|
+
</div>
|
930
|
+
<div class="tags">
|
931
|
+
|
932
|
+
<h3>Returns:</h3>
|
933
|
+
<ul class="return">
|
934
|
+
|
935
|
+
<li>
|
936
|
+
|
937
|
+
|
938
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
—
|
943
|
+
<div class='inline'><p>Bronze medals won</p>
|
944
|
+
</div>
|
945
|
+
|
946
|
+
</li>
|
947
|
+
|
948
|
+
</ul>
|
949
|
+
|
950
|
+
</div><table class="source_code">
|
951
|
+
<tr>
|
952
|
+
<td>
|
953
|
+
<pre class="lines">
|
954
|
+
|
955
|
+
|
956
|
+
19
|
957
|
+
20
|
958
|
+
21</pre>
|
959
|
+
</td>
|
960
|
+
<td>
|
961
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 19</span>
|
962
|
+
|
963
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_bronze_medals identifier id'>bronze_medals</span>
|
964
|
+
<span class='rubyid_@bronze_medals ivar id'>@bronze_medals</span>
|
965
|
+
<span class='rubyid_end end kw'>end</span>
|
966
|
+
</pre>
|
967
|
+
</td>
|
968
|
+
</tr>
|
969
|
+
</table>
|
970
|
+
</div>
|
971
|
+
|
972
|
+
|
973
|
+
<span id=""></span>
|
974
|
+
<span id="damage_campaign-instance_method"></span>
|
975
|
+
<div class="method_details ">
|
976
|
+
<p class="signature " id="damage_campaign-instance_method">
|
977
|
+
|
978
|
+
- (<tt>Float</tt>) <strong>damage_campaign</strong> <span class="extras">(readonly)</span>
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
</p><div class="docstring">
|
983
|
+
<div class="discussion">
|
984
|
+
<p>Returns the damage done during the campaign by this player</p>
|
985
|
+
|
986
|
+
|
987
|
+
</div>
|
988
|
+
</div>
|
989
|
+
<div class="tags">
|
990
|
+
|
991
|
+
<h3>Returns:</h3>
|
992
|
+
<ul class="return">
|
993
|
+
|
994
|
+
<li>
|
995
|
+
|
996
|
+
|
997
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
—
|
1002
|
+
<div class='inline'><p>Damage done during the campaign</p>
|
1003
|
+
</div>
|
1004
|
+
|
1005
|
+
</li>
|
1006
|
+
|
1007
|
+
</ul>
|
1008
|
+
|
1009
|
+
</div><table class="source_code">
|
1010
|
+
<tr>
|
1011
|
+
<td>
|
1012
|
+
<pre class="lines">
|
1013
|
+
|
1014
|
+
|
1015
|
+
29
|
1016
|
+
30
|
1017
|
+
31</pre>
|
1018
|
+
</td>
|
1019
|
+
<td>
|
1020
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 29</span>
|
1021
|
+
|
1022
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_damage_campaign identifier id'>damage_campaign</span>
|
1023
|
+
<span class='rubyid_@damage_campaign ivar id'>@damage_campaign</span>
|
1024
|
+
<span class='rubyid_end end kw'>end</span>
|
1025
|
+
</pre>
|
1026
|
+
</td>
|
1027
|
+
</tr>
|
1028
|
+
</table>
|
1029
|
+
</div>
|
1030
|
+
|
1031
|
+
|
1032
|
+
<span id=""></span>
|
1033
|
+
<span id="damage_challenge-instance_method"></span>
|
1034
|
+
<div class="method_details ">
|
1035
|
+
<p class="signature " id="damage_challenge-instance_method">
|
1036
|
+
|
1037
|
+
- (<tt>Float</tt>) <strong>damage_challenge</strong> <span class="extras">(readonly)</span>
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
</p><div class="docstring">
|
1042
|
+
<div class="discussion">
|
1043
|
+
<p>Returns the damage done during challenges by this player</p>
|
1044
|
+
|
1045
|
+
|
1046
|
+
</div>
|
1047
|
+
</div>
|
1048
|
+
<div class="tags">
|
1049
|
+
|
1050
|
+
<h3>Returns:</h3>
|
1051
|
+
<ul class="return">
|
1052
|
+
|
1053
|
+
<li>
|
1054
|
+
|
1055
|
+
|
1056
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
1057
|
+
|
1058
|
+
|
1059
|
+
|
1060
|
+
—
|
1061
|
+
<div class='inline'><p>Damage done during challenges</p>
|
1062
|
+
</div>
|
1063
|
+
|
1064
|
+
</li>
|
1065
|
+
|
1066
|
+
</ul>
|
1067
|
+
|
1068
|
+
</div><table class="source_code">
|
1069
|
+
<tr>
|
1070
|
+
<td>
|
1071
|
+
<pre class="lines">
|
1072
|
+
|
1073
|
+
|
1074
|
+
34
|
1075
|
+
35
|
1076
|
+
36</pre>
|
1077
|
+
</td>
|
1078
|
+
<td>
|
1079
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 34</span>
|
1080
|
+
|
1081
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_damage_challenge identifier id'>damage_challenge</span>
|
1082
|
+
<span class='rubyid_@damage_challenge ivar id'>@damage_challenge</span>
|
1083
|
+
<span class='rubyid_end end kw'>end</span>
|
1084
|
+
</pre>
|
1085
|
+
</td>
|
1086
|
+
</tr>
|
1087
|
+
</table>
|
1088
|
+
</div>
|
1089
|
+
|
1090
|
+
|
1091
|
+
<span id=""></span>
|
1092
|
+
<span id="damage_done-instance_method"></span>
|
1093
|
+
<div class="method_details ">
|
1094
|
+
<p class="signature " id="damage_done-instance_method">
|
1095
|
+
|
1096
|
+
- (<tt>Float</tt>) <strong>damage_done</strong> <span class="extras">(readonly)</span>
|
1097
|
+
|
1098
|
+
|
1099
|
+
|
1100
|
+
</p><div class="docstring">
|
1101
|
+
<div class="discussion">
|
1102
|
+
<p>Returns the damage done by this player</p>
|
1103
|
+
|
1104
|
+
|
1105
|
+
</div>
|
1106
|
+
</div>
|
1107
|
+
<div class="tags">
|
1108
|
+
|
1109
|
+
<h3>Returns:</h3>
|
1110
|
+
<ul class="return">
|
1111
|
+
|
1112
|
+
<li>
|
1113
|
+
|
1114
|
+
|
1115
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
—
|
1120
|
+
<div class='inline'><p>Damage done</p>
|
1121
|
+
</div>
|
1122
|
+
|
1123
|
+
</li>
|
1124
|
+
|
1125
|
+
</ul>
|
1126
|
+
|
1127
|
+
</div><table class="source_code">
|
1128
|
+
<tr>
|
1129
|
+
<td>
|
1130
|
+
<pre class="lines">
|
1131
|
+
|
1132
|
+
|
1133
|
+
24
|
1134
|
+
25
|
1135
|
+
26</pre>
|
1136
|
+
</td>
|
1137
|
+
<td>
|
1138
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 24</span>
|
1139
|
+
|
1140
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_damage_done identifier id'>damage_done</span>
|
1141
|
+
<span class='rubyid_@damage_done ivar id'>@damage_done</span>
|
1142
|
+
<span class='rubyid_end end kw'>end</span>
|
1143
|
+
</pre>
|
1144
|
+
</td>
|
1145
|
+
</tr>
|
1146
|
+
</table>
|
1147
|
+
</div>
|
1148
|
+
|
1149
|
+
|
1150
|
+
<span id=""></span>
|
1151
|
+
<span id="encountered-instance_method"></span>
|
1152
|
+
<div class="method_details ">
|
1153
|
+
<p class="signature " id="encountered-instance_method">
|
1154
|
+
|
1155
|
+
- (<tt>Fixnum</tt>) <strong>encountered</strong> <span class="extras">(readonly)</span>
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
</p><div class="docstring">
|
1160
|
+
<div class="discussion">
|
1161
|
+
<p>Returns the aliens encountered by this player</p>
|
1162
|
+
|
1163
|
+
|
1164
|
+
</div>
|
1165
|
+
</div>
|
1166
|
+
<div class="tags">
|
1167
|
+
|
1168
|
+
<h3>Returns:</h3>
|
1169
|
+
<ul class="return">
|
1170
|
+
|
1171
|
+
<li>
|
1172
|
+
|
1173
|
+
|
1174
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1175
|
+
|
1176
|
+
|
1177
|
+
|
1178
|
+
—
|
1179
|
+
<div class='inline'><p>Aliens encountered</p>
|
1180
|
+
</div>
|
1181
|
+
|
1182
|
+
</li>
|
1183
|
+
|
1184
|
+
</ul>
|
1185
|
+
|
1186
|
+
</div><table class="source_code">
|
1187
|
+
<tr>
|
1188
|
+
<td>
|
1189
|
+
<pre class="lines">
|
1190
|
+
|
1191
|
+
|
1192
|
+
39
|
1193
|
+
40
|
1194
|
+
41</pre>
|
1195
|
+
</td>
|
1196
|
+
<td>
|
1197
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 39</span>
|
1198
|
+
|
1199
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_encountered identifier id'>encountered</span>
|
1200
|
+
<span class='rubyid_@encountered ivar id'>@encountered</span>
|
1201
|
+
<span class='rubyid_end end kw'>end</span>
|
1202
|
+
</pre>
|
1203
|
+
</td>
|
1204
|
+
</tr>
|
1205
|
+
</table>
|
1206
|
+
</div>
|
1207
|
+
|
1208
|
+
|
1209
|
+
<span id=""></span>
|
1210
|
+
<span id="gold_medals-instance_method"></span>
|
1211
|
+
<div class="method_details ">
|
1212
|
+
<p class="signature " id="gold_medals-instance_method">
|
1213
|
+
|
1214
|
+
- (<tt>Fixnum</tt>) <strong>gold_medals</strong> <span class="extras">(readonly)</span>
|
1215
|
+
|
1216
|
+
|
1217
|
+
|
1218
|
+
</p><div class="docstring">
|
1219
|
+
<div class="discussion">
|
1220
|
+
<p>Returns the gold medals won by this player</p>
|
1221
|
+
|
1222
|
+
|
1223
|
+
</div>
|
1224
|
+
</div>
|
1225
|
+
<div class="tags">
|
1226
|
+
|
1227
|
+
<h3>Returns:</h3>
|
1228
|
+
<ul class="return">
|
1229
|
+
|
1230
|
+
<li>
|
1231
|
+
|
1232
|
+
|
1233
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1234
|
+
|
1235
|
+
|
1236
|
+
|
1237
|
+
—
|
1238
|
+
<div class='inline'><p>Gold medals won</p>
|
1239
|
+
</div>
|
1240
|
+
|
1241
|
+
</li>
|
1242
|
+
|
1243
|
+
</ul>
|
1244
|
+
|
1245
|
+
</div><table class="source_code">
|
1246
|
+
<tr>
|
1247
|
+
<td>
|
1248
|
+
<pre class="lines">
|
1249
|
+
|
1250
|
+
|
1251
|
+
44
|
1252
|
+
45
|
1253
|
+
46</pre>
|
1254
|
+
</td>
|
1255
|
+
<td>
|
1256
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 44</span>
|
1257
|
+
|
1258
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_gold_medals identifier id'>gold_medals</span>
|
1259
|
+
<span class='rubyid_@gold_medals ivar id'>@gold_medals</span>
|
1260
|
+
<span class='rubyid_end end kw'>end</span>
|
1261
|
+
</pre>
|
1262
|
+
</td>
|
1263
|
+
</tr>
|
1264
|
+
</table>
|
1265
|
+
</div>
|
1266
|
+
|
1267
|
+
|
1268
|
+
<span id=""></span>
|
1269
|
+
<span id="heat_damage-instance_method"></span>
|
1270
|
+
<div class="method_details ">
|
1271
|
+
<p class="signature " id="heat_damage-instance_method">
|
1272
|
+
|
1273
|
+
- (<tt>Float</tt>) <strong>heat_damage</strong> <span class="extras">(readonly)</span>
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
</p><div class="docstring">
|
1278
|
+
<div class="discussion">
|
1279
|
+
<p>Returns the heat damage done by this player</p>
|
1280
|
+
|
1281
|
+
|
1282
|
+
</div>
|
1283
|
+
</div>
|
1284
|
+
<div class="tags">
|
1285
|
+
|
1286
|
+
<h3>Returns:</h3>
|
1287
|
+
<ul class="return">
|
1288
|
+
|
1289
|
+
<li>
|
1290
|
+
|
1291
|
+
|
1292
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
—
|
1297
|
+
<div class='inline'><p>Heat damage done</p>
|
1298
|
+
</div>
|
1299
|
+
|
1300
|
+
</li>
|
1301
|
+
|
1302
|
+
</ul>
|
1303
|
+
|
1304
|
+
</div><table class="source_code">
|
1305
|
+
<tr>
|
1306
|
+
<td>
|
1307
|
+
<pre class="lines">
|
1308
|
+
|
1309
|
+
|
1310
|
+
49
|
1311
|
+
50
|
1312
|
+
51</pre>
|
1313
|
+
</td>
|
1314
|
+
<td>
|
1315
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 49</span>
|
1316
|
+
|
1317
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_heat_damage identifier id'>heat_damage</span>
|
1318
|
+
<span class='rubyid_@heat_damage ivar id'>@heat_damage</span>
|
1319
|
+
<span class='rubyid_end end kw'>end</span>
|
1320
|
+
</pre>
|
1321
|
+
</td>
|
1322
|
+
</tr>
|
1323
|
+
</table>
|
1324
|
+
</div>
|
1325
|
+
|
1326
|
+
|
1327
|
+
<span id=""></span>
|
1328
|
+
<span id="interest-instance_method"></span>
|
1329
|
+
<div class="method_details ">
|
1330
|
+
<p class="signature " id="interest-instance_method">
|
1331
|
+
|
1332
|
+
- (<tt>Fixnum</tt>) <strong>interest</strong> <span class="extras">(readonly)</span>
|
1333
|
+
|
1334
|
+
|
1335
|
+
|
1336
|
+
</p><div class="docstring">
|
1337
|
+
<div class="discussion">
|
1338
|
+
<p>Returns the interest gained by the player</p>
|
1339
|
+
|
1340
|
+
|
1341
|
+
</div>
|
1342
|
+
</div>
|
1343
|
+
<div class="tags">
|
1344
|
+
|
1345
|
+
<h3>Returns:</h3>
|
1346
|
+
<ul class="return">
|
1347
|
+
|
1348
|
+
<li>
|
1349
|
+
|
1350
|
+
|
1351
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1352
|
+
|
1353
|
+
|
1354
|
+
|
1355
|
+
—
|
1356
|
+
<div class='inline'><p>Interest gained</p>
|
1357
|
+
</div>
|
1358
|
+
|
1359
|
+
</li>
|
1360
|
+
|
1361
|
+
</ul>
|
1362
|
+
|
1363
|
+
</div><table class="source_code">
|
1364
|
+
<tr>
|
1365
|
+
<td>
|
1366
|
+
<pre class="lines">
|
1367
|
+
|
1368
|
+
|
1369
|
+
54
|
1370
|
+
55
|
1371
|
+
56</pre>
|
1372
|
+
</td>
|
1373
|
+
<td>
|
1374
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 54</span>
|
1375
|
+
|
1376
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_interest identifier id'>interest</span>
|
1377
|
+
<span class='rubyid_@interest ivar id'>@interest</span>
|
1378
|
+
<span class='rubyid_end end kw'>end</span>
|
1379
|
+
</pre>
|
1380
|
+
</td>
|
1381
|
+
</tr>
|
1382
|
+
</table>
|
1383
|
+
</div>
|
1384
|
+
|
1385
|
+
|
1386
|
+
<span id=""></span>
|
1387
|
+
<span id="killed-instance_method"></span>
|
1388
|
+
<div class="method_details ">
|
1389
|
+
<p class="signature " id="killed-instance_method">
|
1390
|
+
|
1391
|
+
- (<tt>Fixnum</tt>) <strong>killed</strong> <span class="extras">(readonly)</span>
|
1392
|
+
|
1393
|
+
|
1394
|
+
|
1395
|
+
</p><div class="docstring">
|
1396
|
+
<div class="discussion">
|
1397
|
+
<p>Returns the aliens killed by the player</p>
|
1398
|
+
|
1399
|
+
|
1400
|
+
</div>
|
1401
|
+
</div>
|
1402
|
+
<div class="tags">
|
1403
|
+
|
1404
|
+
<h3>Returns:</h3>
|
1405
|
+
<ul class="return">
|
1406
|
+
|
1407
|
+
<li>
|
1408
|
+
|
1409
|
+
|
1410
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1411
|
+
|
1412
|
+
|
1413
|
+
|
1414
|
+
—
|
1415
|
+
<div class='inline'><p>Aliens killed</p>
|
1416
|
+
</div>
|
1417
|
+
|
1418
|
+
</li>
|
1419
|
+
|
1420
|
+
</ul>
|
1421
|
+
|
1422
|
+
</div><table class="source_code">
|
1423
|
+
<tr>
|
1424
|
+
<td>
|
1425
|
+
<pre class="lines">
|
1426
|
+
|
1427
|
+
|
1428
|
+
59
|
1429
|
+
60
|
1430
|
+
61</pre>
|
1431
|
+
</td>
|
1432
|
+
<td>
|
1433
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 59</span>
|
1434
|
+
|
1435
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_killed identifier id'>killed</span>
|
1436
|
+
<span class='rubyid_@killed ivar id'>@killed</span>
|
1437
|
+
<span class='rubyid_end end kw'>end</span>
|
1438
|
+
</pre>
|
1439
|
+
</td>
|
1440
|
+
</tr>
|
1441
|
+
</table>
|
1442
|
+
</div>
|
1443
|
+
|
1444
|
+
|
1445
|
+
<span id=""></span>
|
1446
|
+
<span id="killed_campaign-instance_method"></span>
|
1447
|
+
<div class="method_details ">
|
1448
|
+
<p class="signature " id="killed_campaign-instance_method">
|
1449
|
+
|
1450
|
+
- (<tt>Fixnum</tt>) <strong>killed_campaign</strong> <span class="extras">(readonly)</span>
|
1451
|
+
|
1452
|
+
|
1453
|
+
|
1454
|
+
</p><div class="docstring">
|
1455
|
+
<div class="discussion">
|
1456
|
+
<p>Returns the aliens killed during the campaign by the player</p>
|
1457
|
+
|
1458
|
+
|
1459
|
+
</div>
|
1460
|
+
</div>
|
1461
|
+
<div class="tags">
|
1462
|
+
|
1463
|
+
<h3>Returns:</h3>
|
1464
|
+
<ul class="return">
|
1465
|
+
|
1466
|
+
<li>
|
1467
|
+
|
1468
|
+
|
1469
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
1473
|
+
—
|
1474
|
+
<div class='inline'><p>Aliens killed during the campaign</p>
|
1475
|
+
</div>
|
1476
|
+
|
1477
|
+
</li>
|
1478
|
+
|
1479
|
+
</ul>
|
1480
|
+
|
1481
|
+
</div><table class="source_code">
|
1482
|
+
<tr>
|
1483
|
+
<td>
|
1484
|
+
<pre class="lines">
|
1485
|
+
|
1486
|
+
|
1487
|
+
64
|
1488
|
+
65
|
1489
|
+
66</pre>
|
1490
|
+
</td>
|
1491
|
+
<td>
|
1492
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 64</span>
|
1493
|
+
|
1494
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_killed_campaign identifier id'>killed_campaign</span>
|
1495
|
+
<span class='rubyid_@killed_campaign ivar id'>@killed_campaign</span>
|
1496
|
+
<span class='rubyid_end end kw'>end</span>
|
1497
|
+
</pre>
|
1498
|
+
</td>
|
1499
|
+
</tr>
|
1500
|
+
</table>
|
1501
|
+
</div>
|
1502
|
+
|
1503
|
+
|
1504
|
+
<span id=""></span>
|
1505
|
+
<span id="killed_challenge-instance_method"></span>
|
1506
|
+
<div class="method_details ">
|
1507
|
+
<p class="signature " id="killed_challenge-instance_method">
|
1508
|
+
|
1509
|
+
- (<tt>Fixnum</tt>) <strong>killed_challenge</strong> <span class="extras">(readonly)</span>
|
1510
|
+
|
1511
|
+
|
1512
|
+
|
1513
|
+
</p><div class="docstring">
|
1514
|
+
<div class="discussion">
|
1515
|
+
<p>Returns the aliens killed during challenges by the player</p>
|
1516
|
+
|
1517
|
+
|
1518
|
+
</div>
|
1519
|
+
</div>
|
1520
|
+
<div class="tags">
|
1521
|
+
|
1522
|
+
<h3>Returns:</h3>
|
1523
|
+
<ul class="return">
|
1524
|
+
|
1525
|
+
<li>
|
1526
|
+
|
1527
|
+
|
1528
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1529
|
+
|
1530
|
+
|
1531
|
+
|
1532
|
+
—
|
1533
|
+
<div class='inline'><p>Aliens killed during challenges</p>
|
1534
|
+
</div>
|
1535
|
+
|
1536
|
+
</li>
|
1537
|
+
|
1538
|
+
</ul>
|
1539
|
+
|
1540
|
+
</div><table class="source_code">
|
1541
|
+
<tr>
|
1542
|
+
<td>
|
1543
|
+
<pre class="lines">
|
1544
|
+
|
1545
|
+
|
1546
|
+
69
|
1547
|
+
70
|
1548
|
+
71</pre>
|
1549
|
+
</td>
|
1550
|
+
<td>
|
1551
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 69</span>
|
1552
|
+
|
1553
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_killed_challenge identifier id'>killed_challenge</span>
|
1554
|
+
<span class='rubyid_@killed_challenge ivar id'>@killed_challenge</span>
|
1555
|
+
<span class='rubyid_end end kw'>end</span>
|
1556
|
+
</pre>
|
1557
|
+
</td>
|
1558
|
+
</tr>
|
1559
|
+
</table>
|
1560
|
+
</div>
|
1561
|
+
|
1562
|
+
|
1563
|
+
<span id=""></span>
|
1564
|
+
<span id="levels_played-instance_method"></span>
|
1565
|
+
<div class="method_details ">
|
1566
|
+
<p class="signature " id="levels_played-instance_method">
|
1567
|
+
|
1568
|
+
- (<tt>Fixnum</tt>) <strong>levels_played</strong> <span class="extras">(readonly)</span>
|
1569
|
+
|
1570
|
+
|
1571
|
+
|
1572
|
+
</p><div class="docstring">
|
1573
|
+
<div class="discussion">
|
1574
|
+
<p>Returns the number of levels played by the player</p>
|
1575
|
+
|
1576
|
+
|
1577
|
+
</div>
|
1578
|
+
</div>
|
1579
|
+
<div class="tags">
|
1580
|
+
|
1581
|
+
<h3>Returns:</h3>
|
1582
|
+
<ul class="return">
|
1583
|
+
|
1584
|
+
<li>
|
1585
|
+
|
1586
|
+
|
1587
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1588
|
+
|
1589
|
+
|
1590
|
+
|
1591
|
+
—
|
1592
|
+
<div class='inline'><p>Number of levels played</p>
|
1593
|
+
</div>
|
1594
|
+
|
1595
|
+
</li>
|
1596
|
+
|
1597
|
+
</ul>
|
1598
|
+
|
1599
|
+
</div><table class="source_code">
|
1600
|
+
<tr>
|
1601
|
+
<td>
|
1602
|
+
<pre class="lines">
|
1603
|
+
|
1604
|
+
|
1605
|
+
74
|
1606
|
+
75
|
1607
|
+
76</pre>
|
1608
|
+
</td>
|
1609
|
+
<td>
|
1610
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 74</span>
|
1611
|
+
|
1612
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_played identifier id'>levels_played</span>
|
1613
|
+
<span class='rubyid_@levels_played ivar id'>@levels_played</span>
|
1614
|
+
<span class='rubyid_end end kw'>end</span>
|
1615
|
+
</pre>
|
1616
|
+
</td>
|
1617
|
+
</tr>
|
1618
|
+
</table>
|
1619
|
+
</div>
|
1620
|
+
|
1621
|
+
|
1622
|
+
<span id=""></span>
|
1623
|
+
<span id="levels_played_campaign-instance_method"></span>
|
1624
|
+
<div class="method_details ">
|
1625
|
+
<p class="signature " id="levels_played_campaign-instance_method">
|
1626
|
+
|
1627
|
+
- (<tt>Fixnum</tt>) <strong>levels_played_campaign</strong> <span class="extras">(readonly)</span>
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
</p><div class="docstring">
|
1632
|
+
<div class="discussion">
|
1633
|
+
<p>Returns the number of levels played during the campaign by the player</p>
|
1634
|
+
|
1635
|
+
|
1636
|
+
</div>
|
1637
|
+
</div>
|
1638
|
+
<div class="tags">
|
1639
|
+
|
1640
|
+
<h3>Returns:</h3>
|
1641
|
+
<ul class="return">
|
1642
|
+
|
1643
|
+
<li>
|
1644
|
+
|
1645
|
+
|
1646
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1647
|
+
|
1648
|
+
|
1649
|
+
|
1650
|
+
—
|
1651
|
+
<div class='inline'><p>Number of levels played during the campaign</p>
|
1652
|
+
</div>
|
1653
|
+
|
1654
|
+
</li>
|
1655
|
+
|
1656
|
+
</ul>
|
1657
|
+
|
1658
|
+
</div><table class="source_code">
|
1659
|
+
<tr>
|
1660
|
+
<td>
|
1661
|
+
<pre class="lines">
|
1662
|
+
|
1663
|
+
|
1664
|
+
79
|
1665
|
+
80
|
1666
|
+
81</pre>
|
1667
|
+
</td>
|
1668
|
+
<td>
|
1669
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 79</span>
|
1670
|
+
|
1671
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_played_campaign identifier id'>levels_played_campaign</span>
|
1672
|
+
<span class='rubyid_@levels_played_campaign ivar id'>@levels_played_campaign</span>
|
1673
|
+
<span class='rubyid_end end kw'>end</span>
|
1674
|
+
</pre>
|
1675
|
+
</td>
|
1676
|
+
</tr>
|
1677
|
+
</table>
|
1678
|
+
</div>
|
1679
|
+
|
1680
|
+
|
1681
|
+
<span id=""></span>
|
1682
|
+
<span id="levels_played_challenge-instance_method"></span>
|
1683
|
+
<div class="method_details ">
|
1684
|
+
<p class="signature " id="levels_played_challenge-instance_method">
|
1685
|
+
|
1686
|
+
- (<tt>Fixnum</tt>) <strong>levels_played_challenge</strong> <span class="extras">(readonly)</span>
|
1687
|
+
|
1688
|
+
|
1689
|
+
|
1690
|
+
</p><div class="docstring">
|
1691
|
+
<div class="discussion">
|
1692
|
+
<p>Returns the number of levels played during challenges by the player</p>
|
1693
|
+
|
1694
|
+
|
1695
|
+
</div>
|
1696
|
+
</div>
|
1697
|
+
<div class="tags">
|
1698
|
+
|
1699
|
+
<h3>Returns:</h3>
|
1700
|
+
<ul class="return">
|
1701
|
+
|
1702
|
+
<li>
|
1703
|
+
|
1704
|
+
|
1705
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
—
|
1710
|
+
<div class='inline'><p>Number of levels played during challenges</p>
|
1711
|
+
</div>
|
1712
|
+
|
1713
|
+
</li>
|
1714
|
+
|
1715
|
+
</ul>
|
1716
|
+
|
1717
|
+
</div><table class="source_code">
|
1718
|
+
<tr>
|
1719
|
+
<td>
|
1720
|
+
<pre class="lines">
|
1721
|
+
|
1722
|
+
|
1723
|
+
84
|
1724
|
+
85
|
1725
|
+
86</pre>
|
1726
|
+
</td>
|
1727
|
+
<td>
|
1728
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 84</span>
|
1729
|
+
|
1730
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_played_challenge identifier id'>levels_played_challenge</span>
|
1731
|
+
<span class='rubyid_@levels_played_challenge ivar id'>@levels_played_challenge</span>
|
1732
|
+
<span class='rubyid_end end kw'>end</span>
|
1733
|
+
</pre>
|
1734
|
+
</td>
|
1735
|
+
</tr>
|
1736
|
+
</table>
|
1737
|
+
</div>
|
1738
|
+
|
1739
|
+
|
1740
|
+
<span id=""></span>
|
1741
|
+
<span id="levels_won-instance_method"></span>
|
1742
|
+
<div class="method_details ">
|
1743
|
+
<p class="signature " id="levels_won-instance_method">
|
1744
|
+
|
1745
|
+
- (<tt>Fixnum</tt>) <strong>levels_won</strong> <span class="extras">(readonly)</span>
|
1746
|
+
|
1747
|
+
|
1748
|
+
|
1749
|
+
</p><div class="docstring">
|
1750
|
+
<div class="discussion">
|
1751
|
+
<p>Returns the number of levels won by the player</p>
|
1752
|
+
|
1753
|
+
|
1754
|
+
</div>
|
1755
|
+
</div>
|
1756
|
+
<div class="tags">
|
1757
|
+
|
1758
|
+
<h3>Returns:</h3>
|
1759
|
+
<ul class="return">
|
1760
|
+
|
1761
|
+
<li>
|
1762
|
+
|
1763
|
+
|
1764
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1765
|
+
|
1766
|
+
|
1767
|
+
|
1768
|
+
—
|
1769
|
+
<div class='inline'><p>Number of levels won</p>
|
1770
|
+
</div>
|
1771
|
+
|
1772
|
+
</li>
|
1773
|
+
|
1774
|
+
</ul>
|
1775
|
+
|
1776
|
+
</div><table class="source_code">
|
1777
|
+
<tr>
|
1778
|
+
<td>
|
1779
|
+
<pre class="lines">
|
1780
|
+
|
1781
|
+
|
1782
|
+
89
|
1783
|
+
90
|
1784
|
+
91</pre>
|
1785
|
+
</td>
|
1786
|
+
<td>
|
1787
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 89</span>
|
1788
|
+
|
1789
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_won identifier id'>levels_won</span>
|
1790
|
+
<span class='rubyid_@levels_won ivar id'>@levels_won</span>
|
1791
|
+
<span class='rubyid_end end kw'>end</span>
|
1792
|
+
</pre>
|
1793
|
+
</td>
|
1794
|
+
</tr>
|
1795
|
+
</table>
|
1796
|
+
</div>
|
1797
|
+
|
1798
|
+
|
1799
|
+
<span id=""></span>
|
1800
|
+
<span id="levels_won_campaign-instance_method"></span>
|
1801
|
+
<div class="method_details ">
|
1802
|
+
<p class="signature " id="levels_won_campaign-instance_method">
|
1803
|
+
|
1804
|
+
- (<tt>Fixnum</tt>) <strong>levels_won_campaign</strong> <span class="extras">(readonly)</span>
|
1805
|
+
|
1806
|
+
|
1807
|
+
|
1808
|
+
</p><div class="docstring">
|
1809
|
+
<div class="discussion">
|
1810
|
+
<p>Returns the number of levels won during the campaign by the player</p>
|
1811
|
+
|
1812
|
+
|
1813
|
+
</div>
|
1814
|
+
</div>
|
1815
|
+
<div class="tags">
|
1816
|
+
|
1817
|
+
<h3>Returns:</h3>
|
1818
|
+
<ul class="return">
|
1819
|
+
|
1820
|
+
<li>
|
1821
|
+
|
1822
|
+
|
1823
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1824
|
+
|
1825
|
+
|
1826
|
+
|
1827
|
+
—
|
1828
|
+
<div class='inline'><p>Number of levels during the campaign won</p>
|
1829
|
+
</div>
|
1830
|
+
|
1831
|
+
</li>
|
1832
|
+
|
1833
|
+
</ul>
|
1834
|
+
|
1835
|
+
</div><table class="source_code">
|
1836
|
+
<tr>
|
1837
|
+
<td>
|
1838
|
+
<pre class="lines">
|
1839
|
+
|
1840
|
+
|
1841
|
+
94
|
1842
|
+
95
|
1843
|
+
96</pre>
|
1844
|
+
</td>
|
1845
|
+
<td>
|
1846
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 94</span>
|
1847
|
+
|
1848
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_won_campaign identifier id'>levels_won_campaign</span>
|
1849
|
+
<span class='rubyid_@levels_won_campaign ivar id'>@levels_won_campaign</span>
|
1850
|
+
<span class='rubyid_end end kw'>end</span>
|
1851
|
+
</pre>
|
1852
|
+
</td>
|
1853
|
+
</tr>
|
1854
|
+
</table>
|
1855
|
+
</div>
|
1856
|
+
|
1857
|
+
|
1858
|
+
<span id=""></span>
|
1859
|
+
<span id="levels_won_challenge-instance_method"></span>
|
1860
|
+
<div class="method_details ">
|
1861
|
+
<p class="signature " id="levels_won_challenge-instance_method">
|
1862
|
+
|
1863
|
+
- (<tt>Fixnum</tt>) <strong>levels_won_challenge</strong> <span class="extras">(readonly)</span>
|
1864
|
+
|
1865
|
+
|
1866
|
+
|
1867
|
+
</p><div class="docstring">
|
1868
|
+
<div class="discussion">
|
1869
|
+
<p>Returns the number of levels won during challenges by the player</p>
|
1870
|
+
|
1871
|
+
|
1872
|
+
</div>
|
1873
|
+
</div>
|
1874
|
+
<div class="tags">
|
1875
|
+
|
1876
|
+
<h3>Returns:</h3>
|
1877
|
+
<ul class="return">
|
1878
|
+
|
1879
|
+
<li>
|
1880
|
+
|
1881
|
+
|
1882
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1883
|
+
|
1884
|
+
|
1885
|
+
|
1886
|
+
—
|
1887
|
+
<div class='inline'><p>Number of levels during challenges won</p>
|
1888
|
+
</div>
|
1889
|
+
|
1890
|
+
</li>
|
1891
|
+
|
1892
|
+
</ul>
|
1893
|
+
|
1894
|
+
</div><table class="source_code">
|
1895
|
+
<tr>
|
1896
|
+
<td>
|
1897
|
+
<pre class="lines">
|
1898
|
+
|
1899
|
+
|
1900
|
+
99
|
1901
|
+
100
|
1902
|
+
101</pre>
|
1903
|
+
</td>
|
1904
|
+
<td>
|
1905
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 99</span>
|
1906
|
+
|
1907
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_levels_won_challenge identifier id'>levels_won_challenge</span>
|
1908
|
+
<span class='rubyid_@levels_won_challenge ivar id'>@levels_won_challenge</span>
|
1909
|
+
<span class='rubyid_end end kw'>end</span>
|
1910
|
+
</pre>
|
1911
|
+
</td>
|
1912
|
+
</tr>
|
1913
|
+
</table>
|
1914
|
+
</div>
|
1915
|
+
|
1916
|
+
|
1917
|
+
<span id=""></span>
|
1918
|
+
<span id="orbital_laser_damage-instance_method"></span>
|
1919
|
+
<div class="method_details ">
|
1920
|
+
<p class="signature " id="orbital_laser_damage-instance_method">
|
1921
|
+
|
1922
|
+
- (<tt>Fixnum</tt>) <strong>orbital_laser_damage</strong> <span class="extras">(readonly)</span>
|
1923
|
+
|
1924
|
+
|
1925
|
+
|
1926
|
+
</p><div class="docstring">
|
1927
|
+
<div class="discussion">
|
1928
|
+
<p>Returns the number of times the orbital lasers has been fired by the
|
1929
|
+
player</p>
|
1930
|
+
|
1931
|
+
|
1932
|
+
</div>
|
1933
|
+
</div>
|
1934
|
+
<div class="tags">
|
1935
|
+
|
1936
|
+
<h3>Returns:</h3>
|
1937
|
+
<ul class="return">
|
1938
|
+
|
1939
|
+
<li>
|
1940
|
+
|
1941
|
+
|
1942
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
1943
|
+
|
1944
|
+
|
1945
|
+
|
1946
|
+
—
|
1947
|
+
<div class='inline'><p>Number of times the orbital laser has been fired</p>
|
1948
|
+
</div>
|
1949
|
+
|
1950
|
+
</li>
|
1951
|
+
|
1952
|
+
</ul>
|
1953
|
+
|
1954
|
+
</div><table class="source_code">
|
1955
|
+
<tr>
|
1956
|
+
<td>
|
1957
|
+
<pre class="lines">
|
1958
|
+
|
1959
|
+
|
1960
|
+
110
|
1961
|
+
111
|
1962
|
+
112</pre>
|
1963
|
+
</td>
|
1964
|
+
<td>
|
1965
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 110</span>
|
1966
|
+
|
1967
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_orbital_laser_damage identifier id'>orbital_laser_damage</span>
|
1968
|
+
<span class='rubyid_@orbital_laser_damage ivar id'>@orbital_laser_damage</span>
|
1969
|
+
<span class='rubyid_end end kw'>end</span>
|
1970
|
+
</pre>
|
1971
|
+
</td>
|
1972
|
+
</tr>
|
1973
|
+
</table>
|
1974
|
+
</div>
|
1975
|
+
|
1976
|
+
|
1977
|
+
<span id=""></span>
|
1978
|
+
<span id="orbital_laser_fired-instance_method"></span>
|
1979
|
+
<div class="method_details ">
|
1980
|
+
<p class="signature " id="orbital_laser_fired-instance_method">
|
1981
|
+
|
1982
|
+
- (<tt>Float</tt>) <strong>orbital_laser_fired</strong> <span class="extras">(readonly)</span>
|
1983
|
+
|
1984
|
+
|
1985
|
+
|
1986
|
+
</p><div class="docstring">
|
1987
|
+
<div class="discussion">
|
1988
|
+
<p>Returns the damage dealt by the orbital laser</p>
|
1989
|
+
|
1990
|
+
|
1991
|
+
</div>
|
1992
|
+
</div>
|
1993
|
+
<div class="tags">
|
1994
|
+
|
1995
|
+
<h3>Returns:</h3>
|
1996
|
+
<ul class="return">
|
1997
|
+
|
1998
|
+
<li>
|
1999
|
+
|
2000
|
+
|
2001
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
2002
|
+
|
2003
|
+
|
2004
|
+
|
2005
|
+
—
|
2006
|
+
<div class='inline'><p>Damage dealt by the orbital laser</p>
|
2007
|
+
</div>
|
2008
|
+
|
2009
|
+
</li>
|
2010
|
+
|
2011
|
+
</ul>
|
2012
|
+
|
2013
|
+
</div><table class="source_code">
|
2014
|
+
<tr>
|
2015
|
+
<td>
|
2016
|
+
<pre class="lines">
|
2017
|
+
|
2018
|
+
|
2019
|
+
104
|
2020
|
+
105
|
2021
|
+
106</pre>
|
2022
|
+
</td>
|
2023
|
+
<td>
|
2024
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 104</span>
|
2025
|
+
|
2026
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_orbital_laser_fired identifier id'>orbital_laser_fired</span>
|
2027
|
+
<span class='rubyid_@orbital_laser_fired ivar id'>@orbital_laser_fired</span>
|
2028
|
+
<span class='rubyid_end end kw'>end</span>
|
2029
|
+
</pre>
|
2030
|
+
</td>
|
2031
|
+
</tr>
|
2032
|
+
</table>
|
2033
|
+
</div>
|
2034
|
+
|
2035
|
+
|
2036
|
+
<span id=""></span>
|
2037
|
+
<span id="resources-instance_method"></span>
|
2038
|
+
<div class="method_details ">
|
2039
|
+
<p class="signature " id="resources-instance_method">
|
2040
|
+
|
2041
|
+
- (<tt>Fixnum</tt>) <strong>resources</strong> <span class="extras">(readonly)</span>
|
2042
|
+
|
2043
|
+
|
2044
|
+
|
2045
|
+
</p><div class="docstring">
|
2046
|
+
<div class="discussion">
|
2047
|
+
<p>Returns the amount of resources harvested by the player</p>
|
2048
|
+
|
2049
|
+
|
2050
|
+
</div>
|
2051
|
+
</div>
|
2052
|
+
<div class="tags">
|
2053
|
+
|
2054
|
+
<h3>Returns:</h3>
|
2055
|
+
<ul class="return">
|
2056
|
+
|
2057
|
+
<li>
|
2058
|
+
|
2059
|
+
|
2060
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
2061
|
+
|
2062
|
+
|
2063
|
+
|
2064
|
+
—
|
2065
|
+
<div class='inline'><p>Resources harvested by the player</p>
|
2066
|
+
</div>
|
2067
|
+
|
2068
|
+
</li>
|
2069
|
+
|
2070
|
+
</ul>
|
2071
|
+
|
2072
|
+
</div><table class="source_code">
|
2073
|
+
<tr>
|
2074
|
+
<td>
|
2075
|
+
<pre class="lines">
|
2076
|
+
|
2077
|
+
|
2078
|
+
115
|
2079
|
+
116
|
2080
|
+
117</pre>
|
2081
|
+
</td>
|
2082
|
+
<td>
|
2083
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 115</span>
|
2084
|
+
|
2085
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_resources identifier id'>resources</span>
|
2086
|
+
<span class='rubyid_@resources ivar id'>@resources</span>
|
2087
|
+
<span class='rubyid_end end kw'>end</span>
|
2088
|
+
</pre>
|
2089
|
+
</td>
|
2090
|
+
</tr>
|
2091
|
+
</table>
|
2092
|
+
</div>
|
2093
|
+
|
2094
|
+
|
2095
|
+
<span id=""></span>
|
2096
|
+
<span id="silver_medals-instance_method"></span>
|
2097
|
+
<div class="method_details ">
|
2098
|
+
<p class="signature " id="silver_medals-instance_method">
|
2099
|
+
|
2100
|
+
- (<tt>Fixnum</tt>) <strong>silver_medals</strong> <span class="extras">(readonly)</span>
|
2101
|
+
|
2102
|
+
|
2103
|
+
|
2104
|
+
</p><div class="docstring">
|
2105
|
+
<div class="discussion">
|
2106
|
+
<p>Returns the silver medals won by this player</p>
|
2107
|
+
|
2108
|
+
|
2109
|
+
</div>
|
2110
|
+
</div>
|
2111
|
+
<div class="tags">
|
2112
|
+
|
2113
|
+
<h3>Returns:</h3>
|
2114
|
+
<ul class="return">
|
2115
|
+
|
2116
|
+
<li>
|
2117
|
+
|
2118
|
+
|
2119
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
2120
|
+
|
2121
|
+
|
2122
|
+
|
2123
|
+
—
|
2124
|
+
<div class='inline'><p>Silver medals won</p>
|
2125
|
+
</div>
|
2126
|
+
|
2127
|
+
</li>
|
2128
|
+
|
2129
|
+
</ul>
|
2130
|
+
|
2131
|
+
</div><table class="source_code">
|
2132
|
+
<tr>
|
2133
|
+
<td>
|
2134
|
+
<pre class="lines">
|
2135
|
+
|
2136
|
+
|
2137
|
+
120
|
2138
|
+
121
|
2139
|
+
122</pre>
|
2140
|
+
</td>
|
2141
|
+
<td>
|
2142
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 120</span>
|
2143
|
+
|
2144
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_silver_medals identifier id'>silver_medals</span>
|
2145
|
+
<span class='rubyid_@silver_medals ivar id'>@silver_medals</span>
|
2146
|
+
<span class='rubyid_end end kw'>end</span>
|
2147
|
+
</pre>
|
2148
|
+
</td>
|
2149
|
+
</tr>
|
2150
|
+
</table>
|
2151
|
+
</div>
|
2152
|
+
|
2153
|
+
|
2154
|
+
<span id=""></span>
|
2155
|
+
<span id="time_played-instance_method"></span>
|
2156
|
+
<div class="method_details ">
|
2157
|
+
<p class="signature " id="time_played-instance_method">
|
2158
|
+
|
2159
|
+
- (<tt>Float</tt>) <strong>time_played</strong> <span class="extras">(readonly)</span>
|
2160
|
+
|
2161
|
+
|
2162
|
+
|
2163
|
+
</p><div class="docstring">
|
2164
|
+
<div class="discussion">
|
2165
|
+
<p>Returns the time played in seconds by the player</p>
|
2166
|
+
|
2167
|
+
|
2168
|
+
</div>
|
2169
|
+
</div>
|
2170
|
+
<div class="tags">
|
2171
|
+
|
2172
|
+
<h3>Returns:</h3>
|
2173
|
+
<ul class="return">
|
2174
|
+
|
2175
|
+
<li>
|
2176
|
+
|
2177
|
+
|
2178
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
2179
|
+
|
2180
|
+
|
2181
|
+
|
2182
|
+
—
|
2183
|
+
<div class='inline'><p>Time played</p>
|
2184
|
+
</div>
|
2185
|
+
|
2186
|
+
</li>
|
2187
|
+
|
2188
|
+
</ul>
|
2189
|
+
|
2190
|
+
</div><table class="source_code">
|
2191
|
+
<tr>
|
2192
|
+
<td>
|
2193
|
+
<pre class="lines">
|
2194
|
+
|
2195
|
+
|
2196
|
+
125
|
2197
|
+
126
|
2198
|
+
127</pre>
|
2199
|
+
</td>
|
2200
|
+
<td>
|
2201
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 125</span>
|
2202
|
+
|
2203
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_time_played identifier id'>time_played</span>
|
2204
|
+
<span class='rubyid_@time_played ivar id'>@time_played</span>
|
2205
|
+
<span class='rubyid_end end kw'>end</span>
|
2206
|
+
</pre>
|
2207
|
+
</td>
|
2208
|
+
</tr>
|
2209
|
+
</table>
|
2210
|
+
</div>
|
2211
|
+
|
2212
|
+
</div>
|
2213
|
+
|
2214
|
+
|
2215
|
+
<div id="instance_method_details" class="method_details_list">
|
2216
|
+
<h2>Instance Method Details</h2>
|
2217
|
+
|
2218
|
+
|
2219
|
+
<div class="method_details first">
|
2220
|
+
<p class="signature first" id="alien_stats-instance_method">
|
2221
|
+
|
2222
|
+
- (<tt>Hash<String, Array<Fixnum>></tt>) <strong>alien_stats</strong>
|
2223
|
+
|
2224
|
+
|
2225
|
+
|
2226
|
+
</p><div class="docstring">
|
2227
|
+
<div class="discussion">
|
2228
|
+
<p>Returns stats about the aliens encountered by the player</p>
|
2229
|
+
|
2230
|
+
<p>The Hash returned uses the names of the aliens as keys. Every value of
|
2231
|
+
the Hash is an Array containing the number of aliens encountered as the
|
2232
|
+
first element and the number of aliens killed as the second element.</p>
|
2233
|
+
|
2234
|
+
|
2235
|
+
</div>
|
2236
|
+
</div>
|
2237
|
+
<div class="tags">
|
2238
|
+
|
2239
|
+
<h3>Returns:</h3>
|
2240
|
+
<ul class="return">
|
2241
|
+
|
2242
|
+
<li>
|
2243
|
+
|
2244
|
+
|
2245
|
+
<span class='type'>(<tt>Hash<String, Array<Fixnum>></tt>)</span>
|
2246
|
+
|
2247
|
+
|
2248
|
+
|
2249
|
+
—
|
2250
|
+
<div class='inline'><p>Stats about the aliens encountered</p>
|
2251
|
+
</div>
|
2252
|
+
|
2253
|
+
</li>
|
2254
|
+
|
2255
|
+
</ul>
|
2256
|
+
|
2257
|
+
</div><table class="source_code">
|
2258
|
+
<tr>
|
2259
|
+
<td>
|
2260
|
+
<pre class="lines">
|
2261
|
+
|
2262
|
+
|
2263
|
+
170
|
2264
|
+
171
|
2265
|
+
172
|
2266
|
+
173
|
2267
|
+
174
|
2268
|
+
175
|
2269
|
+
176
|
2270
|
+
177
|
2271
|
+
178
|
2272
|
+
179
|
2273
|
+
180
|
2274
|
+
181
|
2275
|
+
182
|
2276
|
+
183
|
2277
|
+
184
|
2278
|
+
185
|
2279
|
+
186
|
2280
|
+
187
|
2281
|
+
188</pre>
|
2282
|
+
</td>
|
2283
|
+
<td>
|
2284
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 170</span>
|
2285
|
+
|
2286
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_alien_stats identifier id'>alien_stats</span>
|
2287
|
+
<span class='rubyid_return return kw'>return</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_public? fid id'>public?</span>
|
2288
|
+
|
2289
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_@alien_stats ivar id'>@alien_stats</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
|
2290
|
+
<span class='rubyid_alien_data identifier id'>alien_data</span> <span class='assign token'>=</span> <span class='rubyid_@xml_data ivar id'>@xml_data</span><span class='lbrack token'>[</span><span class='string val'>'stats'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'aliens'</span><span class='rbrack token'>]</span>
|
2291
|
+
<span class='rubyid_@alien_stats ivar id'>@alien_stats</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
|
2292
|
+
<span class='rubyid_aliens identifier id'>aliens</span> <span class='assign token'>=</span> <span class='dstring node'>%w{swarmer juggernaut crasher spire grunt bulwark drone manta
|
2293
|
+
dart decoy rumbler seeker turtle walker racer stealth}</span>
|
2294
|
+
|
2295
|
+
<span class='rubyid_aliens identifier id'>aliens</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_alien identifier id'>alien</span><span class='bitor op'>|</span>
|
2296
|
+
<span class='rubyid_@alien_stats ivar id'>@alien_stats</span><span class='lbrack token'>[</span><span class='rubyid_alien identifier id'>alien</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span>
|
2297
|
+
<span class='rubyid_alien_data identifier id'>alien_data</span><span class='lbrack token'>[</span><span class='rubyid_alien identifier id'>alien</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'encountered'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span>
|
2298
|
+
<span class='rubyid_alien_data identifier id'>alien_data</span><span class='lbrack token'>[</span><span class='rubyid_alien identifier id'>alien</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'killed'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
|
2299
|
+
<span class='rbrack token'>]</span>
|
2300
|
+
<span class='rubyid_end end kw'>end</span>
|
2301
|
+
<span class='rubyid_end end kw'>end</span>
|
2302
|
+
|
2303
|
+
<span class='rubyid_@alien_stats ivar id'>@alien_stats</span>
|
2304
|
+
<span class='rubyid_end end kw'>end</span>
|
2305
|
+
</pre>
|
2306
|
+
</td>
|
2307
|
+
</tr>
|
2308
|
+
</table>
|
2309
|
+
</div>
|
2310
|
+
|
2311
|
+
<div class="method_details ">
|
2312
|
+
<p class="signature " id="tower_stats-instance_method">
|
2313
|
+
|
2314
|
+
- (<tt>Hash<String, Array<Fixnum>></tt>) <strong>tower_stats</strong>
|
2315
|
+
|
2316
|
+
|
2317
|
+
|
2318
|
+
</p><div class="docstring">
|
2319
|
+
<div class="discussion">
|
2320
|
+
<p>Returns stats about the towers built by the player</p>
|
2321
|
+
|
2322
|
+
<p>The Hash returned uses the names of the towers as keys. Every value of
|
2323
|
+
the Hash is another Hash using the keys 1 to 3 for different tower levels.
|
2324
|
+
The values of these Hash is an Array containing the number of towers
|
2325
|
+
built as the first element and the damage dealt by this specific tower
|
2326
|
+
type as the second element.</p>
|
2327
|
+
|
2328
|
+
<p>The Command tower uses the resources gained as second element.
|
2329
|
+
The Temporal tower doesn't have a second element.</p>
|
2330
|
+
|
2331
|
+
|
2332
|
+
</div>
|
2333
|
+
</div>
|
2334
|
+
<div class="tags">
|
2335
|
+
|
2336
|
+
<h3>Returns:</h3>
|
2337
|
+
<ul class="return">
|
2338
|
+
|
2339
|
+
<li>
|
2340
|
+
|
2341
|
+
|
2342
|
+
<span class='type'>(<tt>Hash<String, Array<Fixnum>></tt>)</span>
|
2343
|
+
|
2344
|
+
|
2345
|
+
|
2346
|
+
—
|
2347
|
+
<div class='inline'><p>Stats about the towers built</p>
|
2348
|
+
</div>
|
2349
|
+
|
2350
|
+
</li>
|
2351
|
+
|
2352
|
+
</ul>
|
2353
|
+
|
2354
|
+
</div><table class="source_code">
|
2355
|
+
<tr>
|
2356
|
+
<td>
|
2357
|
+
<pre class="lines">
|
2358
|
+
|
2359
|
+
|
2360
|
+
202
|
2361
|
+
203
|
2362
|
+
204
|
2363
|
+
205
|
2364
|
+
206
|
2365
|
+
207
|
2366
|
+
208
|
2367
|
+
209
|
2368
|
+
210
|
2369
|
+
211
|
2370
|
+
212
|
2371
|
+
213
|
2372
|
+
214
|
2373
|
+
215
|
2374
|
+
216
|
2375
|
+
217
|
2376
|
+
218
|
2377
|
+
219
|
2378
|
+
220
|
2379
|
+
221
|
2380
|
+
222
|
2381
|
+
223
|
2382
|
+
224
|
2383
|
+
225
|
2384
|
+
226
|
2385
|
+
227
|
2386
|
+
228
|
2387
|
+
229
|
2388
|
+
230
|
2389
|
+
231
|
2390
|
+
232
|
2391
|
+
233
|
2392
|
+
234
|
2393
|
+
235
|
2394
|
+
236
|
2395
|
+
237
|
2396
|
+
238</pre>
|
2397
|
+
</td>
|
2398
|
+
<td>
|
2399
|
+
<pre class="code"><span class="info file"># File 'lib/steam/community/defense_grid/defense_grid_stats.rb', line 202</span>
|
2400
|
+
|
2401
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_tower_stats identifier id'>tower_stats</span>
|
2402
|
+
<span class='rubyid_return return kw'>return</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_public? fid id'>public?</span>
|
2403
|
+
|
2404
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
|
2405
|
+
<span class='rubyid_tower_data identifier id'>tower_data</span> <span class='assign token'>=</span> <span class='rubyid_@xml_data ivar id'>@xml_data</span><span class='lbrack token'>[</span><span class='string val'>'stats'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'towers'</span><span class='rbrack token'>]</span>
|
2406
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
|
2407
|
+
<span class='rubyid_towers identifier id'>towers</span> <span class='assign token'>=</span> <span class='dstring node'>%w{cannon flak gun inferno laser meteor missile tesla}</span>
|
2408
|
+
|
2409
|
+
<span class='rubyid_towers identifier id'>towers</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_tower identifier id'>tower</span><span class='bitor op'>|</span>
|
2410
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='rubyid_tower identifier id'>tower</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
|
2411
|
+
<span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>3</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
|
2412
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span> <span class='assign token'>=</span> <span class='rubyid_tower_data identifier id'>tower_data</span><span class='lbrack token'>[</span><span class='rubyid_tower identifier id'>tower</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_detect identifier id'>detect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_t identifier id'>t</span><span class='bitor op'>|</span> <span class='rubyid_t identifier id'>t</span><span class='lbrack token'>[</span><span class='string val'>'level'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='rubyid_i identifier id'>i</span> <span class='rbrace token'>}</span>
|
2413
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='rubyid_tower identifier id'>tower</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span>
|
2414
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span><span class='lbrack token'>[</span><span class='string val'>'built'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span>
|
2415
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span><span class='lbrack token'>[</span><span class='string val'>'damage'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
2416
|
+
<span class='rbrack token'>]</span>
|
2417
|
+
<span class='rubyid_end end kw'>end</span>
|
2418
|
+
<span class='rubyid_end end kw'>end</span>
|
2419
|
+
|
2420
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='string val'>'command'</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
|
2421
|
+
<span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>3</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
|
2422
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span> <span class='assign token'>=</span> <span class='rubyid_tower_data identifier id'>tower_data</span><span class='lbrack token'>[</span><span class='string val'>'command'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_detect identifier id'>detect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_t identifier id'>t</span><span class='bitor op'>|</span> <span class='rubyid_t identifier id'>t</span><span class='lbrack token'>[</span><span class='string val'>'level'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='rubyid_i identifier id'>i</span> <span class='rbrace token'>}</span>
|
2423
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='string val'>'command'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span>
|
2424
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span><span class='lbrack token'>[</span><span class='string val'>'built'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span>
|
2425
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span><span class='lbrack token'>[</span><span class='string val'>'resource'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
|
2426
|
+
<span class='rbrack token'>]</span>
|
2427
|
+
<span class='rubyid_end end kw'>end</span>
|
2428
|
+
|
2429
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='string val'>'temporal'</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
|
2430
|
+
<span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>3</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
|
2431
|
+
<span class='rubyid_tower_level identifier id'>tower_level</span> <span class='assign token'>=</span> <span class='rubyid_tower_data identifier id'>tower_data</span><span class='lbrack token'>[</span><span class='string val'>'temporal'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_detect identifier id'>detect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_t identifier id'>t</span><span class='bitor op'>|</span> <span class='rubyid_t identifier id'>t</span><span class='lbrack token'>[</span><span class='string val'>'level'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='rubyid_i identifier id'>i</span> <span class='rbrace token'>}</span>
|
2432
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span><span class='lbrack token'>[</span><span class='string val'>'temporal'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span> <span class='rubyid_tower_level identifier id'>tower_level</span><span class='lbrack token'>[</span><span class='string val'>'built'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'value'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='rbrack token'>]</span>
|
2433
|
+
<span class='rubyid_end end kw'>end</span>
|
2434
|
+
<span class='rubyid_end end kw'>end</span>
|
2435
|
+
|
2436
|
+
<span class='rubyid_@tower_stats ivar id'>@tower_stats</span>
|
2437
|
+
<span class='rubyid_end end kw'>end</span>
|
2438
|
+
</pre>
|
2439
|
+
</td>
|
2440
|
+
</tr>
|
2441
|
+
</table>
|
2442
|
+
</div>
|
2443
|
+
|
2444
|
+
</div>
|
2445
|
+
|
2446
|
+
</div>
|
2447
|
+
|
2448
|
+
<div id="footer">
|
2449
|
+
Generated on Mon Apr 30 07:03:00 2012 by
|
2450
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2451
|
+
0.7.5 (ruby-1.8.7).
|
2452
|
+
</div>
|
2453
|
+
|
2454
|
+
</body>
|
2455
|
+
</html>
|