Action是动作的基类,所有的动作都派生自这个类,它创建的一个对象代表了一个动作。动作作用于Node,因此,任何一个动作都需要由Node对象来执行。
// 将一个精灵用3秒钟时间从屏幕中间移动到(0, 0)的位置
auto tortoise = Sprite::create("other/tortoise.png");
tortoise->setPosition(Vec2(visibleS...
分类:
其他好文 时间:
2014-12-11 00:19:17
阅读次数:
259
umask是一个系统变量,它的作用是:当文件被创建时,为文件的访问权限设定一个掩码。执行umask命令可以修改这个变量的值。它是一个由3个八进制数字组成的值。每个数字都是八进制值1、2、4的OR的操作结果。他们的具体含义见下面表格。其中三个数字分别对应着用户(user)、组(group)和其他用户(other)的访问权限。
数字
取值
含义
1
0
...
分类:
系统相关 时间:
2014-12-10 21:23:53
阅读次数:
475
UVA - 10250
The Other Two Trees
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Problem E
The Other Two Trees
Input: st...
分类:
其他好文 时间:
2014-12-10 21:23:53
阅读次数:
263
新建控制台程序: File--> New -->Other --> console Application 1 program Project1; 2 3 {$APPTYPE CONSOLE} 4 5 uses 6 SysUtils; 7 var 8 a,b,sum:Integer; 9 ...
心血来潮就想自己搭建一个框架,我使用的是MyEclipse2013,单击右键New->Other->Maven Project,如下所示: 接着点击"Next",选择默认,出现如下: 选择"maven-archetype-webapp",接着点击"Next",填写:Group Id、...
分类:
其他好文 时间:
2014-12-10 12:50:58
阅读次数:
271
RelativeLayout布局本文地址:http://blog.csdn.net/caroline_wendyRelativeLayout是一种相对布局方式,是根据属性进行对齐;A Layout where the positions of the children can be described in relation to each other or to the parent.在布局中,...
分类:
移动开发 时间:
2014-12-10 09:18:22
阅读次数:
246
首先是FriendBeanpackage com.example.other;public class FriendBean{ private String FName = null; private String FImg = null; private int iID = -1...
分类:
移动开发 时间:
2014-12-09 19:29:03
阅读次数:
141
一般Java文件编码格式是UTF-8的。以下以默认GBK改为UTF-8为例。1.改变整个工作空间的编码格式,这样以后新建的文件也是新设置的编码格式。 eclipse->window->preferences->General->workspaceTypes->Other->UTF-8->OK ...
分类:
系统相关 时间:
2014-12-09 19:08:31
阅读次数:
208
Find them, Catch them
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)
Total Submission(s) : 2 Accepted Submission(s) : 1
Problem Description
The police office...
分类:
其他好文 时间:
2014-12-09 15:40:53
阅读次数:
171
在java中要想实现多线程,有两种手段,一种是继续Thread类,另外一种是实现Runable接口。对于直接继承Thread的类来说,代码大致框架是:123456789101112class类名extendsThread{方法1;方法2;…publicvoidrun(){// other code…...
分类:
编程语言 时间:
2014-12-09 15:21:42
阅读次数:
281