摘要:
原文:http://www.frozax.com/blog/2012/10/simple-useful-finite-state-machine-fsm-c/我写了一个有限状态机的模板,因为我要写不同的FSM1.状态用枚举来代替(便于调试)2.要运行FSM,只需要setState和updateSta...
阅读全文
posted @ 2013-03-03 02:05
纯洁的坏蛋
阅读(3313)
推荐(0)
摘要:
原文:http://www.frozax.com/blog/2012/05/optimizing-graphics-performance-ios-android-cocos2dx/在开发Don't Feed the Trolls的期间主要的测试设备是一台Acer平板A500. 这款平板非常强劲,我...
阅读全文
posted @ 2013-03-03 01:45
纯洁的坏蛋
阅读(146)
推荐(0)
摘要:
CCShake.h#ifndef __SHAKE_H__#define __SHAKE_H__#include "CCActionInterval.h"class CCShake : public cocos2d::CCActionInterval{ // Code by Francois G...
阅读全文
posted @ 2013-03-03 00:55
纯洁的坏蛋
阅读(368)
推荐(0)
摘要:
Feel free to use my recursive methods:2Pause:void GamePlayGuiLayer::RevursivelyPauseAllChildren( CCNode * node ) {node->pauseSchedulerAndActions();CCO...
阅读全文
posted @ 2013-03-02 20:55
纯洁的坏蛋
阅读(211)
推荐(0)
摘要:
Android之用PopupWindow实现弹出菜单http://blog.csdn.net/kkfdsa132/article/details/6403404
阅读全文
posted @ 2013-02-22 19:15
纯洁的坏蛋
阅读(109)
推荐(0)
摘要:
转载自:http://blog.csdn.net/qzzsunly/article/details/7824591如果你的自定义ListViewItem中有Button或者Checkable的子类控件的话,那么默认focus是交给了子控件,而ListView的Item能被选中的基础是它能获取Focu...
阅读全文
posted @ 2013-02-22 17:07
纯洁的坏蛋
阅读(110)
推荐(0)
摘要:
Roster roster = LoginToolUtil.getInstance().getConnection().getRoster(); Presence presence = roster.getPresence("user@domin"); if (presence.get...
阅读全文
posted @ 2013-02-21 20:02
纯洁的坏蛋
阅读(605)
推荐(0)
摘要:
这是sms_dialog.xmlpackage com.sms.activity;import android.app.Activity;import android.ap...
阅读全文
posted @ 2013-01-23 14:53
纯洁的坏蛋
阅读(502)
推荐(0)
摘要:
// Returns true if the lines between v0v1 and t0t1 cross// If the lines cross, the intersection between them will// be stored in intersectionPointbool...
阅读全文
posted @ 2013-01-22 16:42
纯洁的坏蛋
阅读(590)
推荐(0)
摘要:
/** Returns opposite of point. @return CCPoint @since v0.7.2 */static inline CCPointccpNeg(const CCPoint v) //计算关于原点的对称点{ return ccp(-v.x, -v.y)...
阅读全文
posted @ 2013-01-21 17:11
纯洁的坏蛋
阅读(341)
推荐(0)