工厂模式说白了就是用接口产生实例。 public static human crthuman(Class c){ human cc=null; try { cc = (human) Class.forName(...
分类:
其他好文 时间:
2015-07-04 16:43:49
阅读次数:
116
maven 其他镜像 repo2 central Human Readable Name for this Mirror. http://repo2.maven.org/maven2/ ...
分类:
其他好文 时间:
2015-07-04 06:14:55
阅读次数:
111
_proto_实际上是指向某个对象实例的属性,而prototype这是其构造器函数的属性,所以两者并不等价;然而ie说这并没有什么卵用var objA = { name:"Mack",sex:'male' };function Human(){};Human.prototype=objA;var d...
分类:
其他好文 时间:
2015-07-03 12:19:26
阅读次数:
176
在前一节,我们介绍了Strategy模式,并使用此模式实现了一个根据角色的职业来分配技能的范例(实际也就是动态地为类分配方法)。作为一款奇幻RPG,有了职业,我们还应当可以为角色选择种族,比如说:人类(Human)、精灵(Elf)、矮人(Dwarf)、兽人(Orc)等等。而这四个种族又有着截然不同的外形,精灵皮肤灰白、有着长长的耳朵、没有体毛和胡须;矮人的皮肤与人类近似,但是身材矮小、通常留着浓密...
分类:
其他好文 时间:
2015-07-02 14:10:36
阅读次数:
102
150702 编译BPL_MonitorView.bpl包发现提示找不到cxBarEditItemD16包,=》我将此包和往下的 dxSkin**包都尝试性删除,编译提示要加载包,点击确定,删除的Skin**包又回来了,cxBarEditItemD16被替换成cxBarEditItemRS16 但这...
分类:
其他好文 时间:
2015-07-02 11:41:55
阅读次数:
117
原型(prototype) 1.1访问原型的方法function human () {}human.prototype.name = "people"human.prototype.sayname = function(){console.log(this.name);} var jack = n....
分类:
编程语言 时间:
2015-07-01 00:59:05
阅读次数:
178
1.导入load data infile '/tmp/yhb/skin_info.txt' into table t_skin fields terminated by '\t' (skin_id,img) ; //指定列导入load data infile '/tmp/yhb/skin_info....
分类:
数据库 时间:
2015-06-30 21:38:03
阅读次数:
137
METEOR: An Automatic Metric for MT Evaluation with Improved Correlation with Human JudgmentsSatanjeev Banerjee Alon LavieLanguage Technologies Instit....
分类:
其他好文 时间:
2015-06-26 21:02:50
阅读次数:
163
1. By 2010, the two settings most psychologists employed in are academic settings, 37.3%, and human services, like ospitals, etc., 25.8%.2. study tech...
分类:
其他好文 时间:
2015-06-26 19:24:14
阅读次数:
120
在一个平面打斗游戏中,任何的角色(Role)都有血量(blood)和位置loc(此处loc是Location类的实例)属性。有了Role类,可以派生出不同的角色,如人、神仙、怪兽等。如下程序中,定义了Location类和Role类,人类(Human)中新增了姓名和攻击力数据成员,请为Human类设计成员函数,并实现Role类中的moveTo和addBlood两个成员函数。
请在begin和end...
分类:
其他好文 时间:
2015-06-25 09:03:53
阅读次数:
180