memo: all meth and vars for main objects pyspades
-
[BP]Mininao
Deuce - Posts: 13
- Joined: Thu Dec 27, 2012 12:13 pm
This is really awesome !
But do you know where we can find the args available for the differents meth ?
But do you know where we can find the args available for the differents meth ?
for most odf them you can look them up in mixed.py.... I'm thinking of doing that
-
[BP]Mininao
Deuce - Posts: 13
- Joined: Thu Dec 27, 2012 12:13 pm
Ok, thanks !
Here, all the parameters and default values of the basic protocol class.
Code: Select all
A protocol.map would be nice! :3PROTOCOL-----------
name = 'pyspades server'
game_mode = CTF_MODE
max_players = 32
connections = None
player_ids = None
master = False
max_score = 10
map = None
spade_teamkills_on_grief = False
friendly_fire = False
friendly_fire_time = 2
server_prefix = '[*]'
respawn_time = 5
refill_interval = 20
master_connection = None
speedhack_detect = True
fog_color = (128, 232, 255)
winning_player = None
world = None
team_class = Team
team1_color = (0, 0, 196)
team2_color = (0, 196, 0)
team1_name = 'Blue'
team2_name = 'Green'
spectator_name = 'Spectator'
loop_count = 0
melee_damage = 100
version = GAME_VERSION
respawn_waves = False
send_contained(self, contained, unsequenced = False, sender = None, team = None, save = False, rule = None)
reset_tc(self)
get_cp_entities(self)
update(self)
update_network(self)
set_map(self, map)
reset_game(self, player = None, territory = None)
get_name(self, name)
get_mode_mode(self)
get_random_location(self, force_land = True, zone = (0, 0, 512, 512))
set_master(self)
got_master_connection(self, connection)
master_disconnected(self, client = None)
update_master(self)
update_entities(self)
send_chat(self, value, global_message = None, sender = None, team = None)
set_fog_color(self, color)
get_fog_color(self)
on_cp_capture(self, cp)
on_game_end(self)
on_world_update(self)
on_map_change(self, map)
on_base_spawn(self, x, y, z, base, entity_id)
on_flag_spawn(self, x, y, z, flag, entity_id)
on_update_entity(self, entity)
-
learn_more
Coder
- Posts: 891
- Joined: Sun Mar 24, 2013 9:59 pm
Kuma wrote: A protocol.map would be nice! :3protocol.map_info
learn_more wrote:there is a protocol.map if you din't know.Kuma wrote: A protocol.map would be nice! :3protocol.map_info
like protocol.map.set_point(don't remember the parameters)
Who is online
Users browsing this forum: No registered users and 7 guests