| Trees | Indices | Help |
|---|
|
|
1 from cocos import euclid, collision_model 2 from cocos.layer.base_layers import Layer 3 from cocos.sprite import Sprite 4 from utils import aabb_to_aa_rect 5 from constants import * 6 import os 7 import pyglet 81511 super(BackButton, self).__init__(os.path.join("images", "instructions", "back_button.png")) 12 self.position = x,y 13 self.cshape = aabb_to_aa_rect(self.get_AABB()) 14 self.cshape.center = self.position2218 super(BackButtonUD, self).__init__(os.path.join("images", "instructions", "back_button.png")) 19 self.position = x,y 20 self.cshape = aabb_to_aa_rect(self.get_AABB()) 21 self.cshape.center = self.position2925 super(UnitDetailsButton, self).__init__(os.path.join("images", "instructions", "unit_description_button.png")) 26 self.position = x,y 27 self.cshape = aabb_to_aa_rect(self.get_AABB()) 28 self.cshape.center = self.position3632 super(ControlsButton, self).__init__(os.path.join("images", "instructions", "controls_button.png")) 33 self.position = x,y 34 self.cshape = aabb_to_aa_rect(self.get_AABB()) 35 self.cshape.center = self.position4339 super(TechTreeButton, self).__init__(os.path.join("images", "instructions", "tech_tree_button.png")) 40 self.position = x,y 41 self.cshape = aabb_to_aa_rect(self.get_AABB()) 42 self.cshape.center = self.position5046 super(AttackTroopDetailsButton, self).__init__(os.path.join("images", "instructions", "attack_troop_button.png")) 47 self.position = x,y 48 self.cshape = aabb_to_aa_rect(self.get_AABB()) 49 self.cshape.center = self.position5753 super(UtilityTroopDetailsButton, self).__init__(os.path.join("images", "instructions", "utility_troop_button.png")) 54 self.position = x,y 55 self.cshape = aabb_to_aa_rect(self.get_AABB()) 56 self.cshape.center = self.position6460 super(BuildingsDetailsButton, self).__init__(os.path.join("images", "instructions", "building_details_button.png")) 61 self.position = x,y 62 self.cshape = aabb_to_aa_rect(self.get_AABB()) 63 self.cshape.center = self.position7167 super(ResourceDetailsButton, self).__init__(os.path.join("images", "instructions", "resource_button.png")) 68 self.position = x,y 69 self.cshape = aabb_to_aa_rect(self.get_AABB()) 70 self.cshape.center = self.position
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 12 13:57:10 2013 | http://epydoc.sourceforge.net |