Module instructionButtons :: Class AttackTroopDetailsButton
[hide private]
[frames] | no frames]

Class AttackTroopDetailsButton

source code

cocos.batch.cocosnode.CocosNode --+        
                                  |        
          cocos.batch.BatchableNode --+    
                                      |    
                     object --+       |    
                              |       |    
   pyglet.event.EventDispatcher --+   |    
                                  |   |    
               pyglet.sprite.Sprite --+    
                                      |    
                    cocos.sprite.Sprite --+
                                          |
                                         AttackTroopDetailsButton

Nested Classes [hide private]

Inherited from cocos.sprite.Sprite: supported_classes

Instance Methods [hide private]
 
__init__(self, x, y)
Initialize the sprite
source code

Inherited from cocos.sprite.Sprite: contains, draw, get_AABB, get_rect

Inherited from cocos.batch.BatchableNode: add, remove, set_batch

Inherited from pyglet.sprite.Sprite: __del__, delete, on_animation_end, set_position

Inherited from pyglet.sprite.Sprite (private): _animate, _create_vertex_list, _get_batch, _get_group, _get_image, _set_batch, _set_color, _set_group, _set_image, _set_opacity, _set_texture, _set_visible, _update_color

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 cocos.sprite.Sprite: image_anchor, image_anchor_x, image_anchor_y

Inherited from pyglet.sprite.Sprite: batch, color, group, height, image, opacity, position, rotation, scale, visible, width, x, y

Inherited from pyglet.sprite.Sprite (private): _animation, _batch, _opacity, _rgb, _rotation, _scale, _vertex_list, _visible

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x, y)
(Constructor)

source code 
Initialize the sprite

:Parameters:
        `image` : string or image
            name of the image resource or a pyglet image.
        `position` : tuple
            position of the anchor. Defaults to (0,0)
        `rotation` : float
            the rotation (degrees). Defaults to 0.
        `scale` : float
            the zoom factor. Defaults to 1.
        `opacity` : int
            the opacity (0=transparent, 255=opaque). Defaults to 255.
        `color` : tuple
            the color to colorize the child (RGB 3-tuple). Defaults to (255,255,255).
        `anchor` : (float, float)
            (x,y)-point from where the image will be positions, rotated and scaled in pixels. For example (image.width/2, image.height/2) is the center (default).

Overrides: object.__init__
(inherited documentation)