自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

T-cog的博客

平衡既是一种状态,也是一个过程

  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

原创 UML类图的4种常用关系(关联,聚合,组合,依赖)

关联 Association表示一类对象对另一类对象之间有联系,如汽车和轮胎、师傅和徒弟、班级和学生等【UML类图表示】:实线连接【代码实现】:一个类的对象作为另一个类的成员变量。聚合 Aggregation表示整体与部分的关联关系(关联的一种)(生命周期不同),例如汽车发动机是汽车的组成部分,但发动机可以独立存在。【UML类图表示】:带空心菱形的直线表示(菱形为整体,箭头指向部分)【代码实现】:成员对象通常作为构造方法、Setter方法或业务方法的参数“注入”整体对象中。(并没有直接..

2020-10-22 09:02:13 1427

原创 C++ 基本功能测试(【方法重载】【类继承】【引用父类同名方法】)

C++ 构建系统框架的一般方法1. 【方法重载】按照不同参数列表(包括参数个数和参数类型),进行重载(同其他语言)2. 【类继承】class A : public Bclass DerivedClass : public BaseClass{}3. 【引用父类同名方法】调用父类构造函数:在方法定义行末尾加 “:BaseClassConstructor() ”(父类的构造函数)例:DerivedClass::DerivedClass():BaseClass() { //以下是子类在父类基

2020-08-04 01:06:27 169

原创 C# 基本功能测试(【方法重载】【类继承】【引用父类同名方法】)

C# 构建系统框架的一般功能1. 【方法重载】按照不同参数列表(包括参数个数和参数类型),进行重载(同其他语言)**2.【类继承】**class A : Bclass DerivedClass : public BaseClass{}3. 【引用父类同名方法】调用父类构造函数public Class_name() : base(){ // base()代表父类的无参构造函数}例:public Warriors() : base() //非常重要{ // 以下是在父类构造函数修

2020-08-04 01:01:53 385

原创 JavaScript 基本功能测试(【消息框】【方法重载】【类继承】【引用父类同名方法】)

JavaScript 构建系统框架所需的一般功能0. 【消息框】function show_alert(){ alert("Your name.");}function show_confirm(){ var res = confirm("Is this your name?"); if(res){ alert("OK"); } else{ alert("Cancel"); }}function show_prompt(){ var value = prompt("Type

2020-08-04 00:58:04 128

原创 Ruby的module模块(“.“和“::“的区别,模块的“常量”,“静态方法”,“实例方法”,“类”的定义和调用)

Module模块类似C#的namespace功能:将代码放入模块,防止“同名冲突”实现“多继承”(从这个角度看,类似C#的interface接口)以下两句转自Runoob菜鸟网:模块常量命名与类常量命名类似,以大写字母开头。方法定义看起来也相似:模块方法定义与类方法定义类似。通过类方法,您可以在类方法名称前面放置模块名称和一个点号来调用模块方法,您可以使用模块名称和两个冒号来引用一个常量。".“和”::"的区别亲测:"."可以被“::”替代"::"不可以被“.”替代"."只可用于

2020-08-04 00:50:59 386

原创 JavaScript 闭包简单实例(模板)

// 【闭包简单实例(模板)】// 声明闭包名称ClosureNamevar ClosureName = (function () { // 声明并定义内部的私有变量 var privateVar = 0; // 声明并内部的私有方法 function f1(x){ // 对私有变量的操作 privateVar++; // 输出以查看私有变量,以及函数实参的结果 console.log("privateVar: "+ privateVar + "\n" + "function p

2020-08-02 12:26:41 171

原创 # Unity C# 构建Database(小型数据库)

Unity C# 构建Database(小型数据库)意外发现可以在一个C#文件中可建立多个class。但是,只有与C#文件名【同名class】的Start() Update()等MonoBehaviour函数会被Unity执行。没关系,要的就是这个效果…那么,C#文件中建立的【非同名class】,既然不继承MonoBehaviour,那可以干什么呢?(构建小型数据库)并且,不需要把这个...

2020-03-17 01:38:52 717

原创 Unity C#读写txt

Unity C#读写txtFile.WriteAllText使用:File.WriteAllText不能放在Start()里using System.IO;using System.Text;public class TxtLoading : MonoBehaviour { // Use this for initialization void Start () { ...

2020-03-15 23:12:09 846

TDDP_FluidTimestep.js

RPG Maker MV 帧频修正插件。可调整在Win10上运行的游戏运行帧数。一般电脑为144FPS。此脚本可调整至60FPS。 修改位置:第63行:SceneManager._dt = 1.0 / 60; // 除数即为欲修改至的FPS 以下为作者注释: /*: * @plugindesc 1.0.2 Fixes MV's framerate dependent timestepping. Makes the gamespeed the same regardless of framerate. * @author Tor Damian Design / Galenmereth * * @help =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ * Information * =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ * For updates and easy to use documentation, please go to the plugin's website: * http://mvplugins.tordamian.com/?p=437 * * This plugin replaces MV's update loop with a semi-fixed timestep solution based * on http://gafferongames.com/game-physics/fix-your-timestep/ * * This makes the game run at normal speed (animation, movement, and anything else) * regardless of framerate. By default, MV run on a 144hz monitor would run at * 144fps and everything would move at 2,4 times normal speed. Likewise, if * someone ran the game and only managed 30fps, everything would move at half * normal speed. * * This solution decouples visual updates from logic updates so that the latter * always occur at 60 times per second, while frames get updated as fast as the * user's computer can display it. * * There you can also download a PDF of the documentation for offline use, and * having the documentation in one cleanly presented place means you can always * be sure it's the most recent available. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Terms & Conditions * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * This plugin is free for both non-commercial and commercial use. Please see * http://mvplugins.tordamian.com/terms-of-use for the full terms of use. */

2020-08-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除