Class cocos.particle_systems.Sun

cocosnode.CocosNode --+    
                      |    
particle.ParticleSystem --+
                          |
                         Sun

Methods

  __contains__(self, child) (Inherited from cocos.cocosnode.CocosNode)
  __init__(self) (Inherited from cocos.particle.ParticleSystem)
  add(self, child, z=0, name=None)
Adds a child to the container
(Inherited from cocos.cocosnode.CocosNode)
  add_particle(self)
be sure there is room for the particle or be prepared to catch the exception ExceptionNoEmptyParticle It is acceptable to try: ...
(Inherited from cocos.particle.ParticleSystem)
  are_actions_running(self)
Determine whether any actions are running.
(Inherited from cocos.cocosnode.CocosNode)
Action instance do(self, action, target=None)
Executes an action.
(Inherited from cocos.cocosnode.CocosNode)
  draw(self)
This is the function you will have to override if you want your subclassed to draw something on screen.
(Inherited from cocos.particle.ParticleSystem)
  get(self, name)
Gets a child from the container given its name
(Inherited from cocos.cocosnode.CocosNode)
  get_ancestor(self, klass)
Walks the nodes tree upwards until it finds a node of the class klass or returns None
(Inherited from cocos.cocosnode.CocosNode)
  get_children(self) (Inherited from cocos.cocosnode.CocosNode)
  get_local_inverse(self)
returns an euclid.Matrix3 with the local inverse transformation matrix
(Inherited from cocos.cocosnode.CocosNode)
  get_local_transform(self)
returns an euclid.Matrix3 with the local transformation matrix
(Inherited from cocos.cocosnode.CocosNode)
  get_world_inverse(self)
returns an euclid.Matrix3 with the world inverse transformation matrix
(Inherited from cocos.cocosnode.CocosNode)
  get_world_transform(self)
returns an euclid.Matrix3 with the world transformation matrix
(Inherited from cocos.cocosnode.CocosNode)
  init_particle(self) (Inherited from cocos.particle.ParticleSystem)
  kill(self)
Remove this object from its parent, and thus most likely from everything.
(Inherited from cocos.cocosnode.CocosNode)
  on_enter(self)
Called every time just before the node enters the stage.
(Inherited from cocos.particle.ParticleSystem)
  on_exit(self)
Called every time just before the node leaves the stage
(Inherited from cocos.cocosnode.CocosNode)
  pause(self)
Suspends the execution of actions.
(Inherited from cocos.cocosnode.CocosNode)
  pause_scheduler(self)
Time will stop passing for this node and callbacks will not be called
(Inherited from cocos.cocosnode.CocosNode)
  point_to_local(self, p)
returns an euclid.Vector2 converted to local space
(Inherited from cocos.cocosnode.CocosNode)
  point_to_world(self, p)
returns an euclid.Vector2 converted to world space
(Inherited from cocos.cocosnode.CocosNode)
  remove(self, obj)
Removes a child from the container given its name or object
(Inherited from cocos.cocosnode.CocosNode)
  remove_action(self, action)
Removes an action from the node actions container, potentially calling action.stop()
(Inherited from cocos.cocosnode.CocosNode)
  reset_system(self) (Inherited from cocos.particle.ParticleSystem)
  resume(self)
Resumes the execution of actions.
(Inherited from cocos.cocosnode.CocosNode)
  resume_scheduler(self)
Time will continue/start passing for this node and callbacks will be called.
(Inherited from cocos.cocosnode.CocosNode)
  schedule(self, callback, *args, **kwargs)
Schedule a function to be called every frame.
(Inherited from cocos.cocosnode.CocosNode)
  schedule_interval(self, callback, interval, *args, **kwargs)
Schedule a function to be called every interval seconds.
(Inherited from cocos.cocosnode.CocosNode)
  step(self, delta) (Inherited from cocos.particle.ParticleSystem)
  stop(self)
Removes all actions from the running action list
(Inherited from cocos.cocosnode.CocosNode)
  stop_system(self) (Inherited from cocos.particle.ParticleSystem)
  transform(self)
Apply ModelView transformations you will most likely want to wrap calls to this function with glPushMatrix/glPopMatrix
(Inherited from cocos.cocosnode.CocosNode)
  unschedule(self, callback)
Remove a function from the schedule.
(Inherited from cocos.cocosnode.CocosNode)
  update_particles(self, delta) (Inherited from cocos.particle.ParticleSystem)
  visit(self)
This function visits it's children in a recursive way.
(Inherited from cocos.cocosnode.CocosNode)
list walk(self, callback, collect=None)
Executes callback on all the subtree starting at self.
(Inherited from cocos.cocosnode.CocosNode)

Properties

(int,int) anchor
Anchor point of the object.
(Inherited from cocos.cocosnode.CocosNode)
(int,int) anchor_x
Anchor x value for transformations and adding children
(Inherited from cocos.cocosnode.CocosNode)
(int,int) anchor_y
Anchor y value for transformations and adding children
(Inherited from cocos.cocosnode.CocosNode)
object parent
The parent of this object.
(Inherited from cocos.cocosnode.CocosNode)
(int, int) position
The (x, y) coordinates of the object.
(Inherited from cocos.cocosnode.CocosNode)
  rotation (Inherited from cocos.cocosnode.CocosNode)
  scale (Inherited from cocos.cocosnode.CocosNode)
(int,int) transform_anchor
Transformation anchor point.
(Inherited from cocos.cocosnode.CocosNode)
  x
The x coordinate of the object
(Inherited from cocos.cocosnode.CocosNode)
  y
The y coordinate of the object
(Inherited from cocos.cocosnode.CocosNode)

Instance Variables

  actions
list of Action objects that are running
(Inherited from cocos.cocosnode.CocosNode)
  auto_remove_on_finish
auto remove when particle finishes
(Inherited from cocos.particle.ParticleSystem)
  camera
eye, center and up vector for the Camera.
(Inherited from cocos.cocosnode.CocosNode)
  children
list of children.
(Inherited from cocos.cocosnode.CocosNode)
  children_names
dictionary that maps children names with children references
(Inherited from cocos.cocosnode.CocosNode)
  emit_counter
How many particles can be emitted per second
(Inherited from cocos.particle.ParticleSystem)
  grid
the grid object for the grid actions.
(Inherited from cocos.cocosnode.CocosNode)
  is_running
whether of not the object is running
(Inherited from cocos.cocosnode.CocosNode)
  particle_count
Count of particles
(Inherited from cocos.particle.ParticleSystem)
  scheduled_calls
list of scheduled callbacks
(Inherited from cocos.cocosnode.CocosNode)
  scheduled_interval_calls
list of scheduled interval callbacks
(Inherited from cocos.cocosnode.CocosNode)
  skip_frame
whether or not the next frame will be skipped
(Inherited from cocos.cocosnode.CocosNode)
  to_remove
list of Action objects to be removed
(Inherited from cocos.cocosnode.CocosNode)
  transform_anchor_x
offset from (x,0) from where rotation and scale will be applied.
(Inherited from cocos.cocosnode.CocosNode)
  transform_anchor_y
offset from (0,y) from where rotation and scale will be applied.
(Inherited from cocos.cocosnode.CocosNode)
  visible
whether of not the object is visible.
(Inherited from cocos.cocosnode.CocosNode)

Class Variables

  total_particles = 350
Maximum particles
  duration = -1
duration in seconds of the system.
  gravity = Point2(0, 0)
Gravity of the particles
  angle = 90.0
The angle (direction) of the particles measured in degrees
  angle_var = 360.0
Angle variance measured in degrees;
  speed = 20.0
The speed the particles will have.
  speed_var = 5.0
The speed variance
  radial_accel = 0
Radial acceleration
  radial_accel_var = 0
Radial acceleration variance
  tangential_accel = 0.0
Tangential acceleration
  tangential_accel_var = 0.0
Tangential acceleration variance
  pos_var = Point2(0, 0)
position is from "superclass" CocosNode Position variance
  life = 1.0
How many seconds will the particle live
  life_var = 0.5
Life variance
  emission_rate = 350.0
  start_color = Color(0.75, 0.25, 0.12, 1.0)
Start color of the particles
  start_color_var = Color(0.0, 0.0, 0.0, 0.0)
Start color variance
  end_color = Color(0.0, 0.0, 0.0, 0.0)
End color of the particles
  end_color_var = Color(0.0, 0.0, 0.0, 0.0)
End color variance
  size = 40.0
Size of the particles
  size_var = 00.0
Size variance
  blend_additive = True
blend additive
  color_modulate = True
color modulate
  active = True
is the particle system active ?
(Inherited from cocos.particle.ParticleSystem)
  elapsed = 0
time elapsed since the start of the system (in seconds)
(Inherited from cocos.particle.ParticleSystem)
  position_type = 1 (Inherited from cocos.particle.ParticleSystem)
  texture = <TextureRegion 128x128>
texture of the particles
(Inherited from cocos.particle.ParticleSystem)

Constants

  POSITION_FREE = 0 (Inherited from cocos.particle.ParticleSystem)
  POSITION_GROUPED = 1 (Inherited from cocos.particle.ParticleSystem)