Module: GTS::Core

Defined in:
docs/01450_Systems_09000_GTS.rb

Constant Summary collapse

LOCK =

Locking mutex

Mutex.new

Class Method Summary collapse

Class Method Details

.delete_pokemon(withdraw = true, party = PFM.game_state)

deletes your current pokemon from the server



267
268
# File 'docs/01450_Systems_09000_GTS.rb', line 267

def delete_pokemon(withdraw = true, party = PFM.game_state)
end

.download_pokemon(id)

downloads a pokemon string with the given online ID



261
262
# File 'docs/01450_Systems_09000_GTS.rb', line 261

def download_pokemon(id)
end

.download_wanted_data(id)

downloads the wanted data with the given online ID



264
265
# File 'docs/01450_Systems_09000_GTS.rb', line 264

def download_wanted_data(id)
end

.execute(action, data = {})

Our main execution method, since I’m too lazy to write Settings::URL a lot



237
238
# File 'docs/01450_Systems_09000_GTS.rb', line 237

def execute(action, data = {})
end

.get_pokemon_list(*wanted_data)

gets a list of online IDs where the wanted data match up



270
271
# File 'docs/01450_Systems_09000_GTS.rb', line 270

def get_pokemon_list(*wanted_data)
end

.get_pokemon_list_from_wanted(pokemon)

Reverse Lookup pokemon



273
274
# File 'docs/01450_Systems_09000_GTS.rb', line 273

def get_pokemon_list_from_wanted(pokemon)
end

.install

installs the MYSQL tables in the server



276
277
# File 'docs/01450_Systems_09000_GTS.rb', line 276

def install
end

.obtain_online_id

gets a new online ID from the server



240
241
# File 'docs/01450_Systems_09000_GTS.rb', line 240

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

Returns:

  • (Boolean)


252
253
# File 'docs/01450_Systems_09000_GTS.rb', line 252

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

Returns:

  • (Boolean)


246
247
# File 'docs/01450_Systems_09000_GTS.rb', line 246

def pokemon_uploaded?(id = PFM.game_state.online_id)
end

.register_online_id(id)

registers our new online ID to the server



243
244
# File 'docs/01450_Systems_09000_GTS.rb', line 243

def register_online_id(id)
end

.take_pokemon(id)

sets the pokemon with the given online ID to taken



249
250
# File 'docs/01450_Systems_09000_GTS.rb', line 249

def take_pokemon(id)
end

.test_connection

Tests connection to the server (not used anymore but kept for possible use)



234
235
# File 'docs/01450_Systems_09000_GTS.rb', line 234

def test_connection
end

.translate_gender(wanted)

Translate the wanted gender field for the server



279
280
# File 'docs/01450_Systems_09000_GTS.rb', line 279

def translate_gender(wanted)
end

.update_uri

Update the URI



231
232
# File 'docs/01450_Systems_09000_GTS.rb', line 231

def update_uri
end

.upload_new_pokemon(id, pokemon)

uploads the newly traded pokemon to the given online ID to the server



258
259
# File 'docs/01450_Systems_09000_GTS.rb', line 258

def upload_new_pokemon(id, pokemon)
end

.upload_pokemon(pokemon, *wanted_data)

uploads a pokemon to the server



255
256
# File 'docs/01450_Systems_09000_GTS.rb', line 255

def upload_pokemon(pokemon, *wanted_data)
end