Module player :: Class Player
[hide private]
[frames] | no frames]

Class Player

source code

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

Instance Methods [hide private]
 
__init__(self, ID, gameMap, colman, color, special=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
step(self, dt) source code
 
setup(self) source code
 
setup_visibility(self) source code
 
add_troop(self, troopType, vid, oldTroop=None) source code
 
add_building(self, buildingType, vid) source code
 
execute_build_cpu(self, vertex, builder) source code
 
execute_build_building(self, buildingName, unit, selectedUnits=None) source code
 
execute_build_troop(self, troopName, unit, selectedUnits=None) source code
 
perform_research(self, researchChoice, researchFacility, cm) source code
 
update_research_fac_menu(self, researchFacility, gameMap, cm) source code
 
start_cpu(self, sec, cpu, action=None) source code
 
cancel_cpu(self, cpu) source code
 
stop_cpu(self, cpu) source code
 
unit_attack(self, attackers, targets) source code
 
on_destruction(self, unit, selectedUnits=None, cmRemove=True) source code
 
check_loss(self) source code
 
switch_units_select_state(self, units, selectedUnits) source code
 
update_research_action_button(self, researchFactory) source code
 
update_troop_action_button(self, algorithmFactory) source code
 
finish_research(self, newR) source code
 
building_complete(self, building) 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]

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ID, gameMap, colman, color, special=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)