/**
* FileName : ActionsTest.java
* Comment : 지지지 않는 무한 반복
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionRepeatForever extends ActionDemo {
public void onEnter() {
super.onEnter();
centerSprites(1);
// 1초 딜레이 후 콜백 호출
CCSequence action = CCSequence.actions(CCDelayTime.action(1), CCCallFuncN.action(this, "repeatForever"));
grossini.runAction(action);
}
/**
* Comment : 무한 반복
* @version : 1.0
* @tags : @param sender
* @date : 2011. 10. 18.
*/
public void repeatForever(Object sender) {
// 1초동안 360동 회전 무한 반복
CCRepeatForever repeat = CCRepeatForever.action(CCRotateBy.action(1.0f, 360));
((CCNode) sender).runAction(repeat);
}
public String title() {
return "CallFuncN + RepeatForever";
}
}
* FileName : ActionsTest.java
* Comment : 지지지 않는 무한 반복
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionRepeatForever extends ActionDemo {
public void onEnter() {
super.onEnter();
centerSprites(1);
// 1초 딜레이 후 콜백 호출
CCSequence action = CCSequence.actions(CCDelayTime.action(1), CCCallFuncN.action(this, "repeatForever"));
grossini.runAction(action);
}
/**
* Comment : 무한 반복
* @version : 1.0
* @tags : @param sender
* @date : 2011. 10. 18.
*/
public void repeatForever(Object sender) {
// 1초동안 360동 회전 무한 반복
CCRepeatForever repeat = CCRepeatForever.action(CCRotateBy.action(1.0f, 360));
((CCNode) sender).runAction(repeat);
}
public String title() {
return "CallFuncN + RepeatForever";
}
}