Module: GTS::Core
- Defined in:
- docs/4_Systems_901_GTS.rb
Overview
GTS Core Module
Constant Summary collapse
- LOCK =
Locking mutex
Mutex.new
Class Method Summary collapse
-
.delete_pokemon(withdraw = true, party = PFM.game_state)
deletes your current pokemon from the server.
-
.download_pokemon(id)
downloads a pokemon string with the given online ID.
-
.download_wanted_data(id)
downloads the wanted data with the given online ID.
-
.execute(action, data = {})
Our main execution method, since I'm too lazy to write Settings::URL a lot.
-
.get_pokemon_list(*wanted_data)
gets a list of online IDs where the wanted data match up.
-
.get_pokemon_list_from_wanted(pokemon)
Reverse Lookup pokemon.
-
.install
installs the MYSQL tables in the server.
-
.obtain_online_id
gets a new online ID from the server.
-
.pokemon_taken?(id = PFM.game_state.online_id) ⇒ Boolean
checks wether the pokemon with the give online ID is taken.
-
.pokemon_uploaded?(id = PFM.game_state.online_id) ⇒ Boolean
checks whether you have a pokemon uploaded in the server.
-
.register_online_id(id)
registers our new online ID to the server.
-
.take_pokemon(id)
sets the pokemon with the given online ID to taken.
-
.test_connection
Tests connection to the server (not used anymore but kept for possible use).
-
.translate_gender(wanted)
Translate the wanted gender field for the server.
-
.update_uri
Update the URI.
-
.upload_new_pokemon(id, pokemon)
uploads the newly traded pokemon to the given online ID to the server.
-
.upload_pokemon(pokemon, *wanted_data)
uploads a pokemon to the server.
Class Method Details
.delete_pokemon(withdraw = true, party = PFM.game_state)
deletes your current pokemon from the server
268 269 |
# File 'docs/4_Systems_901_GTS.rb', line 268 def delete_pokemon(withdraw = true, party = PFM.game_state) end |
.download_pokemon(id)
downloads a pokemon string with the given online ID
262 263 |
# File 'docs/4_Systems_901_GTS.rb', line 262 def download_pokemon(id) end |
.download_wanted_data(id)
downloads the wanted data with the given online ID
265 266 |
# File 'docs/4_Systems_901_GTS.rb', line 265 def download_wanted_data(id) end |
.execute(action, data = {})
Our main execution method, since I'm too lazy to write Settings::URL a lot
238 239 |
# File 'docs/4_Systems_901_GTS.rb', line 238 def execute(action, data = {}) end |
.get_pokemon_list(*wanted_data)
gets a list of online IDs where the wanted data match up
271 272 |
# File 'docs/4_Systems_901_GTS.rb', line 271 def get_pokemon_list(*wanted_data) end |
.get_pokemon_list_from_wanted(pokemon)
Reverse Lookup pokemon
274 275 |
# File 'docs/4_Systems_901_GTS.rb', line 274 def get_pokemon_list_from_wanted(pokemon) end |
.install
installs the MYSQL tables in the server
277 278 |
# File 'docs/4_Systems_901_GTS.rb', line 277 def install end |
.obtain_online_id
gets a new online ID from the server
241 242 |
# File 'docs/4_Systems_901_GTS.rb', line 241 def obtain_online_id end |
.pokemon_taken?(id = PFM.game_state.online_id) ⇒ Boolean
checks wether the pokemon with the give online ID is taken
253 254 |
# File 'docs/4_Systems_901_GTS.rb', line 253 def pokemon_taken?(id = PFM.game_state.online_id) end |
.pokemon_uploaded?(id = PFM.game_state.online_id) ⇒ Boolean
checks whether you have a pokemon uploaded in the server
247 248 |
# File 'docs/4_Systems_901_GTS.rb', line 247 def pokemon_uploaded?(id = PFM.game_state.online_id) end |
.register_online_id(id)
registers our new online ID to the server
244 245 |
# File 'docs/4_Systems_901_GTS.rb', line 244 def register_online_id(id) end |
.take_pokemon(id)
sets the pokemon with the given online ID to taken
250 251 |
# File 'docs/4_Systems_901_GTS.rb', line 250 def take_pokemon(id) end |
.test_connection
Tests connection to the server (not used anymore but kept for possible use)
235 236 |
# File 'docs/4_Systems_901_GTS.rb', line 235 def test_connection end |
.translate_gender(wanted)
Translate the wanted gender field for the server
280 281 |
# File 'docs/4_Systems_901_GTS.rb', line 280 def translate_gender(wanted) end |
.update_uri
Update the URI
232 233 |
# File 'docs/4_Systems_901_GTS.rb', line 232 def update_uri end |
.upload_new_pokemon(id, pokemon)
uploads the newly traded pokemon to the given online ID to the server
259 260 |
# File 'docs/4_Systems_901_GTS.rb', line 259 def upload_new_pokemon(id, pokemon) end |
.upload_pokemon(pokemon, *wanted_data)
uploads a pokemon to the server
256 257 |
# File 'docs/4_Systems_901_GTS.rb', line 256 def upload_pokemon(pokemon, *wanted_data) end |