需求:表中同一个uid(用户)拥有多条游戏等级记录,现需要取所有用户最高等级(level)的那一条数据,且时间(time)越早排越前。这是典型的排名表+------+-------+--------------+---------------------+| uid | level | role ....
分类:
数据库 时间:
2014-07-22 22:58:16
阅读次数:
380
估计要相当长的一段时间内研究游戏引擎,在这里做一下过程中的备忘。
上一周项目需要,研究了一下cocos2d-x,本周接着来做cocos3d-x的代码研究
首先是搭建cocos3d-x的开发环境:
根据cocos3d-x git上的说明,下载了engine-3d,cocos2d-x并放到指定文件夹下,cocos2d-x/plugin-x放置到指定文件夹下并按照DOC中的说明成功在VS2012上...
分类:
其他好文 时间:
2014-07-18 22:28:57
阅读次数:
318
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every ...
分类:
其他好文 时间:
2014-07-18 20:15:42
阅读次数:
234
struts2 配置文件读取顺序 1. struts-default.xml 2. struts-plugin.xml 【 struts2-json-plugin-2.3.4.jar 】 4. struts.xml 5. struts.properties...
分类:
其他好文 时间:
2014-07-18 08:08:25
阅读次数:
235
neutron-openvswitch-agent代码分析neutron.plugins.openvswitch.agent.ovs_neutron_agent:main# init ovs first by agent_config:# setup plugin_rpc, state_rpc, m...
分类:
其他好文 时间:
2014-07-18 00:28:37
阅读次数:
434
1,取出角色数据源var role = Role.SelectList();2.设置样式 int x = 0; int width = 11; int hang = 1; CheckBox ckb = null; foreach (var roleDto in role) { if (width >...
分类:
其他好文 时间:
2014-07-17 12:55:30
阅读次数:
233
首先是策略模式的定义:策略模式定义了算法族,分别封装了起来,让他们之间可以互相替换,此模式让算法的变化独立于使用算法的顾客。
这里的算法族就是指一个接口和一组实现改接口的类,然后在其他类中,声明这个接口,构造方法中,实例化实现了接口的类,这样,就能实现较低的耦合程度,例如游戏中的武器切换,定义一个武器接口,然后写好多个武器类,都继承这个接口,为了灵活动态切换武器,只要在角色类中写一个setXX(接口)方法就能在运行时改变武器,改变状态。...
分类:
其他好文 时间:
2014-07-16 17:23:17
阅读次数:
187
PB中实现dropdownlistbox和数据库绑定
stringls_temp
declarereaddatedynamiccursorforsqlsa;
stringls_sql="selectROLENAMEfromT_ROLE"
preparesqlsafrom:ls_sql;
opendynamicreaddate;
dowhilesqlca.sqlcode=0
fetchreaddateinto:ls_temp;
ifsqlca.sqlcode=0then
tab_1.tabpa..
分类:
数据库 时间:
2014-07-16 16:40:56
阅读次数:
298
The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants...
分类:
其他好文 时间:
2014-07-16 08:38:31
阅读次数:
311