Public Member Functions | Static Public Member Functions | Properties

CCProgressTimer Class Reference

#import <CCProgressTimer.h>

Inherits CCNode.

Collaboration diagram for CCProgressTimer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithFile:
(id) - initWithTexture:

Static Public Member Functions

(id) + progressWithFile:
(id) + progressWithTexture:

Properties

CCProgressTimerType type
float percentage
CCSpritesprite

Detailed Description

CCProgresstimer is a subclass of CCNode. It renders the inner sprite according to the percentage. The progress can be Radial, Horizontal or vertical.

Since:
v0.99.1

Definition at line 53 of file CCProgressTimer.h.


Member Function Documentation

- (id) initWithFile: (NSString *)  filename  

Initializes a progress timer with an image filename as the shape the timer goes through

- (id) initWithTexture: (CCTexture2D *)  texture  

Creates a progress timer with the texture as the shape the timer goes through

+ (id) progressWithFile: (NSString *)  filename  

Creates a progress timer with an image filename as the shape the timer goes through

+ (id) progressWithTexture: (CCTexture2D *)  texture  

Creates a progress timer with the texture as the shape the timer goes through


Property Documentation

- (float) percentage [read, write, assign]

Percentages are from 0 to 100

Definition at line 66 of file CCProgressTimer.h.

- (CCSprite*) sprite [read, write, retain]

The image to show the progress percentage

Definition at line 69 of file CCProgressTimer.h.

- (CCProgressTimerType) type [read, write, assign]

Change the percentage to change progress.

Definition at line 63 of file CCProgressTimer.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1