Module clientController :: Class ClientController
[hide private]
[frames] | no frames]

Class ClientController

source code

           cocos.layer.Layer --+
                               |
                  object --+   |
                           |   |
pyglet.event.EventDispatcher --+
                               |
                              ClientController

Instance Methods [hide private]
 
__init__(self, mapName)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_add_tutorial(self, mapName) source code
 
_init_map_and_cm(self, mapName) source code
 
on_enter(self) source code
 
end_game(self, didWin) source code
 
stop_server(self) source code
 
step(self, dt) source code
 
clamp(self, pos) source code
 
on_mouse_motion(self, x, y, dx, dy) source code
 
on_key_press(self, k, modifiers) source code
 
on_key_release(self, k, m) source code
 
on_mouse_release(self, x, y, buttons, modifiers) source code
 
_move_selected_units(self, dest) source code
 
execute_action(self, actionName, unit) source code
 
update_location(self, unit, position, vertex=None) source code
 
build_unit(self, tid, owner, vid=-1, uid=-1, onInit=False) source code
 
remove_unit(self, unit) source code
 
perform_research(self, researchName, researchFactory) source code
 
finish_research(self, newResearch, owner, researchFactory) source code
 
move_unit(self, unit, path) source code
 
_update_cshape(self, unit, position) source code
 
_set_focus_to_unit(self, unit) source code
 
connect_end_point(self) source code
 
upgrade_unit(self, oldUnit, newType) source code
 
server_attack_unit(self, attacker, target) source code
 
server_build_unit(self, unitName, vid, builder) source code
 
server_remove_unit(self, unit) source code
 
server_move_troop(self, uid, vid) source code
 
server_connect(self) source code
 
remove_unit_common(self, unit) source code
 
build_unit_common(self, tid, owner, curVertex=None, uid=-1, builder=None, onInit=False) source code
 
_select_units(self, units) source code
 
_deselect_all_units(self) source code
 
_show_as(self, ASid) source code
 
start_cpu(self, newUnit, owner, builder) source code
 
start_server(self) source code
 
_init_players(self) source code
 
init_research(self, pid) source code
 
init_units(self, pid) source code
 
start_game(self) source code
 
_complete_build(self, unit, p, uid, onInit=False) source code

Inherited from pyglet.event.EventDispatcher: dispatch_event, event, pop_handlers, push_handlers, remove_handler, remove_handlers, set_handler, set_handlers

Inherited from pyglet.event.EventDispatcher (private): _get_handlers, _raise_dispatch_exception

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from pyglet.event.EventDispatcher: register_event_type

Class Variables [hide private]
  is_event_handler = True

Inherited from pyglet.event.EventDispatcher (private): _event_stack

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mapName)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)