mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
43 lines
921 B
C++
43 lines
921 B
C++
//
|
|
// ChallengeCell.h
|
|
// OnceAgain
|
|
//
|
|
// Created by mac on 14-4-28.
|
|
//
|
|
//
|
|
|
|
#ifndef __OnceAgain__ChallengeCell__
|
|
#define __OnceAgain__ChallengeCell__
|
|
|
|
#include "cocos2d.h"
|
|
#include "cocos-ext.h"
|
|
USING_NS_CC;
|
|
USING_NS_CC_EXT;
|
|
class ChallengeCell : public CCLayer{
|
|
|
|
public:
|
|
ChallengeCell();
|
|
~ChallengeCell();
|
|
CREATE_FUNC(ChallengeCell);
|
|
virtual bool init();
|
|
|
|
|
|
//设置名字
|
|
void setName(const char* name);
|
|
//设置分数.
|
|
// void setScore(int score);
|
|
//设置介绍
|
|
void setInfo(const char* info);
|
|
//设置时间
|
|
void setTime(long time);
|
|
//设置图片.
|
|
void setAvatarImg(const char* imgUrl);
|
|
//设置按钮的方法.
|
|
void addSendCallbackFunc(CCObject* target, SEL_ReleaseEvent callfun);
|
|
private:
|
|
UILayer* cellLyaer;
|
|
CCSprite* scoreSprite;
|
|
};
|
|
|
|
#endif /* defined(__OnceAgain__ChallengeCell__) */
|