Class cocos.batch.BatchableNode

         object --+    
                  |    
cocosnode.CocosNode --+
                      |
                     BatchableNode

Methods

  add(self, child, z=0, name=None)
Adds a child to the container
  remove(self, child)
Removes a child from the container given its name or object
  set_batch(self, batch, group)
Inherited from cocosnode.CocosNode: __contains__, __init__, are_actions_running, do, draw, get, get_ancestor, get_children, on_enter, on_exit, pause, pause_scheduler, remove_action, resume, resume_scheduler, schedule, schedule_interval, stop, transform, unschedule, visit, walk Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Instance Variables

Inherited from cocosnode.CocosNode: actions, camera, children, children_anchor_x, children_anchor_y, children_names, grid, is_running, rotation, scale, scheduled_calls, scheduled_interval_calls, skip_frame, to_remove, transform_anchor_x, transform_anchor_y, visible, x, y

Class Variables

Inherited from cocosnode.CocosNode: anchor, anchor_x, anchor_y, children_anchor, parent, position, transform_anchor

Method Details

add

add(self, child, z=0, name=None)
Adds a child to the container
Overrides:
cocosnode.CocosNode.add

remove

remove(self, child)
Removes a child from the container given its name or object
Overrides:
cocosnode.CocosNode.remove