00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #import <Foundation/Foundation.h>
00027 #import "CCSprite.h"
00028
00032 typedef enum {
00034 kCCProgressTimerTypeRadialCCW,
00036 kCCProgressTimerTypeRadialCW,
00038 kCCProgressTimerTypeHorizontalBarLR,
00040 kCCProgressTimerTypeHorizontalBarRL,
00042 kCCProgressTimerTypeVerticalBarBT,
00044 kCCProgressTimerTypeVerticalBarTB,
00045 } CCProgressTimerType;
00046
00053 @interface CCProgressTimer : CCNode {
00054 CCProgressTimerType type_;
00055 float percentage_;
00056 CCSprite *sprite_;
00057
00058 int vertexDataCount_;
00059 ccV2F_C4F_T2F *vertexData_;
00060 }
00061
00063 @property (nonatomic, readwrite) CCProgressTimerType type;
00064
00066 @property (nonatomic, readwrite) float percentage;
00067
00069 @property (nonatomic, readwrite, retain) CCSprite *sprite;
00070
00071
00073 + (id) progressWithFile:(NSString*) filename;
00075 - (id) initWithFile:(NSString*) filename;
00076
00078 + (id) progressWithTexture:(CCTexture2D*) texture;
00080 - (id) initWithTexture:(CCTexture2D*) texture;
00081
00082 @end