mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix whitespace
This commit is contained in:
parent
e46353908d
commit
94dc60a7f2
1 changed files with 49 additions and 49 deletions
|
@ -9,66 +9,66 @@ NS_CC_BEGIN
|
||||||
// @note RobTop Addition
|
// @note RobTop Addition
|
||||||
class CCLightning : public CCNode, public CCRGBAProtocol {
|
class CCLightning : public CCNode, public CCRGBAProtocol {
|
||||||
public:
|
public:
|
||||||
CCLightning();
|
CCLightning();
|
||||||
virtual ~CCLightning();
|
virtual ~CCLightning();
|
||||||
|
|
||||||
static cocos2d::CCLightning* lightningWithStrikePoint(cocos2d::CCPoint strikePoint, cocos2d::CCPoint strikePoint2, float duration);
|
static cocos2d::CCLightning* lightningWithStrikePoint(cocos2d::CCPoint strikePoint, cocos2d::CCPoint strikePoint2, float duration);
|
||||||
static cocos2d::CCLightning* lightningWithStrikePoint(cocos2d::CCPoint strikePoint);
|
static cocos2d::CCLightning* lightningWithStrikePoint(cocos2d::CCPoint strikePoint);
|
||||||
|
|
||||||
bool initWithStrikePoint(cocos2d::CCPoint strikePoint, cocos2d::CCPoint strikePoint2, float duration);
|
bool initWithStrikePoint(cocos2d::CCPoint strikePoint, cocos2d::CCPoint strikePoint2, float duration);
|
||||||
bool initWithStrikePoint(cocos2d::CCPoint strikePoint) {
|
bool initWithStrikePoint(cocos2d::CCPoint strikePoint) {
|
||||||
return initWithStrikePoint(strikePoint, {0, 0}, 0.5f);
|
return initWithStrikePoint(strikePoint, {0, 0}, 0.5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void strike();
|
void strike();
|
||||||
void strikeFinished();
|
void strikeFinished();
|
||||||
|
|
||||||
void strikeRandom() {
|
void strikeRandom() {
|
||||||
m_seed = rand();
|
m_seed = rand();
|
||||||
this->strike();
|
this->strike();
|
||||||
}
|
}
|
||||||
|
|
||||||
void strikeWithSeed(uint64_t seed) {
|
void strikeWithSeed(uint64_t seed) {
|
||||||
m_seed = seed;
|
m_seed = seed;
|
||||||
this->strike();
|
this->strike();
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw();
|
void draw();
|
||||||
|
|
||||||
// cocos2d::CCRGBAProtocol
|
// cocos2d::CCRGBAProtocol
|
||||||
bool isOpacityModifyRGB();
|
bool isOpacityModifyRGB();
|
||||||
void setOpacityModifyRGB(bool);
|
void setOpacityModifyRGB(bool);
|
||||||
unsigned char getOpacity();
|
unsigned char getOpacity();
|
||||||
unsigned char getDisplayedOpacity();
|
unsigned char getDisplayedOpacity();
|
||||||
void setOpacity(unsigned char);
|
void setOpacity(unsigned char);
|
||||||
void updateDisplayedOpacity(unsigned char);
|
void updateDisplayedOpacity(unsigned char);
|
||||||
bool isCascadeColorEnabled();
|
bool isCascadeColorEnabled();
|
||||||
void setCascadeOpacityEnabled(bool);
|
void setCascadeOpacityEnabled(bool);
|
||||||
cocos2d::_ccColor3B const& getColor();
|
cocos2d::_ccColor3B const& getColor();
|
||||||
cocos2d::_ccColor3B const& getDisplayedColor();
|
cocos2d::_ccColor3B const& getDisplayedColor();
|
||||||
void setColor(cocos2d::_ccColor3B const&);
|
void setColor(cocos2d::_ccColor3B const&);
|
||||||
void updateDisplayedColor(cocos2d::_ccColor3B const&);
|
void updateDisplayedColor(cocos2d::_ccColor3B const&);
|
||||||
bool isCascadeOpacityEnabled();
|
bool isCascadeOpacityEnabled();
|
||||||
void setCascadeColorEnabled(bool);
|
void setCascadeColorEnabled(bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
cocos2d::CCPoint m_strikePoint;
|
cocos2d::CCPoint m_strikePoint;
|
||||||
cocos2d::CCPoint m_strikePoint2;
|
cocos2d::CCPoint m_strikePoint2;
|
||||||
bool m_split;
|
bool m_split;
|
||||||
PAD(7);
|
PAD(7);
|
||||||
uint32_t m_displacement;
|
uint32_t m_displacement;
|
||||||
uint64_t m_seed;
|
uint64_t m_seed;
|
||||||
float m_lineWidth;
|
float m_lineWidth;
|
||||||
PAD(4);
|
PAD(4);
|
||||||
float m_duration;
|
float m_duration;
|
||||||
float m_extraOpacity;
|
float m_extraOpacity;
|
||||||
cocos2d::CCPoint* m_lightningPoints;
|
cocos2d::CCPoint* m_lightningPoints;
|
||||||
uint32_t m_numPoints;
|
uint32_t m_numPoints;
|
||||||
uint8_t m_unk148;
|
uint8_t m_unk148;
|
||||||
uint8_t m_opacity;
|
uint8_t m_opacity;
|
||||||
PAD(3);
|
PAD(3);
|
||||||
cocos2d::_ccColor3B m_tColor;
|
cocos2d::_ccColor3B m_tColor;
|
||||||
PAD(3);
|
PAD(3);
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_CC_END
|
NS_CC_END
|
||||||
|
|
Loading…
Reference in a new issue