上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
摘要: 工程目录结构: common.h: common.c: LinkList.h: LinkList.c: main.c: 阅读全文
posted @ 2018-06-29 18:13 小·糊涂仙 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 工程目录结构: Common.cs: DS_List.cs: progam.cs: 阅读全文
posted @ 2018-06-28 15:34 小·糊涂仙 阅读(145) 评论(0) 推荐(0) 编辑
摘要: GameManager.lua: Main.lua: 阅读全文
posted @ 2018-06-26 12:56 小·糊涂仙 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 工程目录结构: ParentMother.lua: ParentFather.lua: Daughter.lua: Main.lua: 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 新追加的,另外一种实现多重继承的方式: 运行结果: 阅读全文
posted @ 2018-06-26 00:01 小·糊涂仙 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 多态,简单的理解就是事物的多种形态。专业的术语说就是:同一个实现接口,使用不同的实例而执行不同的操作。 工程结构: BaseRoom.lua: MarryRoom.lua: StarRoom.lua: 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-25 20:34 小·糊涂仙 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 工程结构: BasePlayer.lua: Player.lua: Main.lua: 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-25 17:38 小·糊涂仙 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 工程结构: Player.lua: main.lua: 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-25 15:04 小·糊涂仙 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.runoob.com/lua/lua-metatables.html 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-24 22:59 小·糊涂仙 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 定义了两个文件: Module.lua 和 main.lua 其中,模块的概念,使得Lua工程有了程序主入口的概念,其中main.lua就是用来充当程序主入口的。 工程截图如下: Module.lua中代码: main.lua中代码: 参考:http://www.runoob.com/lua/lua 阅读全文
posted @ 2018-06-24 10:53 小·糊涂仙 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 以下为table的补充内容: table.insert(t, pos, value) 在t指定位置插入元素table.insert(t, value) 在t末尾插入元素 table.remove(t, pos) 在t指定位置删除元素,并返回删除的元素table.remove(t) 在t末尾删除元素, 阅读全文
posted @ 2018-06-24 02:09 小·糊涂仙 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页