栗坂こなべ
- いいね数 89,792/94,462
- フォロー 1,775 フォロワー 3,522 ツイート 77,777
- 現在地 大阪
- Web https://unityroom.com/users/82igfc0yw7dv13sjhxma
- 自己紹介 デジタルゲーム制作,Live2D,ボードゲーム研究,目指せセンター!アイドルピラミッド,ジューシィフルーツ,くだものあつめ,クニツィアのキングダム,レーベンヘルツ,レイズ,タイニータウン,ノヴァルナ,Live2D SDK ,Queen Of Unity-chan,JUKUメン,講師,Unity5 Live2D本執筆
2013年07月24日(水)
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
で、ここまでしっかり部位を分けて、切り貼りして作るか、
はたまた最初に皮だけの人間オブジェクトを作り、その中に構造分けをしっかりしつつtも、ごにょごにょいっぱいたいりょーーーーに肉を詰め込んで作っていくかが、オブジェクト指向と構造化プログラミングの違いだと思ってます。
タグ:
posted at 23:55:05
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
要は、
A⇒A'の進化 ←継承されたA'
A+B+C⇒Dの合体 ←インスタンスを内包するクラスD
A+B+C⇒Dの合体で、Dには必ずBが必要←Bが必要というインターフェース付きのクラスD
なんだよ!
タグ:
posted at 23:47:49
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
猫の例なら、[生物インターフェース]から作られた[4足獣クラス]を継承し、[4足獣クラス]には{個人情報}とか{4つの手足}とか{呼吸器官}とかが必要で、[手足インターフェース]を守って作られた[猫用の手足クラス]のインスタンスを、[猫クラス]にあげると、猫の手足になって…
タグ:
posted at 23:43:29
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
だって、ほとんどのオブジェクト指向の説明って、そうでしょ???
生き物クラスを継承して、猫になっちゃった!すごい!←おわり
とか、オブジェクト指向の本質を何も語っていない。
タグ:
posted at 23:35:11
![](https://pbs.twimg.com/profile_images/1260410680/______CIMG0631_normal.gif)
#Unity これは素晴らしいチュートリアル。タワーディフェンス系は一度作ってみたいなぁ。 www.nicovideo.jp/watch/sm17349962 knr.ifdef.jp/mdkdefence/
タグ: Unity
posted at 23:33:24
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
私は、どこかのオブジェクト指向の本で、継承してゴールに近づけていくんだよ!みたいなことを書いてるふざけているものを読んでから
いつの間にか手クラスが人間になれる日がくると錯覚して、オブジェクト指向わからない人になってた。
タグ:
posted at 23:30:25
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
重要なのは、手クラスが人間になるのではなく、手クラスは所詮人間の手クラスまでしか継承できない。
人間は、手としての最低限のインターフェースを搭載した手しか受け付けない。人間の手クラスは、基底の手クラスでそのインターフェースを備えてるため、装着することが出来る。
タグ:
posted at 23:28:12
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
手クラスを継承して作った人間の手クラスを、人間クラスのコンストラクタ呼び出し時にインスタンス化して、くっつけるようにして。。。
みたいのを5体満足にすれば、人体錬成できるよっ
タグ:
posted at 23:26:03
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
パラメータから自キャラパラメータと敵キャラパラメータでそれぞれ継承して、
とかするぐらいだったら、端から両方を別の塊と考えて、全部作るよね。そっちのほうが変なこと考えなくて済む。
タグ:
posted at 23:18:14
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
![](https://pbs.twimg.com/profile_images/1116269687103344641/slx1jtAq_normal.png)
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://pbs.twimg.com/profile_images/1112702256321712129/Y-_t_i2R_normal.png)
![](https://pbs.twimg.com/profile_images/1112702256321712129/Y-_t_i2R_normal.png)
それはオブジェクト指向ではなくクラスベースのオブジェクト指向支援システムだと小一時間。。。 RT @b2: 構造体に毛が生えたようなもの。 ят @its_out_of_tune オブジェクト指向理解できない。
タグ:
posted at 21:45:29
![](https://pbs.twimg.com/profile_images/1210030695931768837/0dWGxNcQ_normal.png)
140もあれば楽勝だけど、いまいちあれだなあ。
main=mapM_(putStrLn.f)[1..100]
f i|i`mod`15==0="fizzbuzz"|i`mod`3==0="fizz"|i`mod`5==0="buzz"|True=show i
タグ:
posted at 21:12:42
![](https://pbs.twimg.com/profile_images/1210030695931768837/0dWGxNcQ_normal.png)
![](https://pbs.twimg.com/profile_images/1613825502669860864/-Np8hEB-_normal.jpg)
ファットキャット40匹と暮らしたいひるだ @hinako1or8
別にええやんどんな絵柄でも成長してんだからさ。BLっぽい絵柄嫌いなのにポートフォリオで「君の絵BLっぽい絵柄だよねw」って言われて絵筆叩き折った私より。
タグ:
posted at 20:24:58
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://pbs.twimg.com/profile_images/1325405192481722368/ZCqJWO43_normal.png)
そもそも絶滅危惧種って保護する必要あんの?と思い始めた今日この頃。生きる力が足りない死に体の動物に薬打って延命措置してるようなもんじゃん。人間のせいで環境が変わって云々とか言うがそもそも人間も自然の一部だし。
タグ:
posted at 17:55:46
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://pbs.twimg.com/profile_images/823149296384020482/rALItQkG_normal.jpg)
プログラミング言語kuinまとめwiki - トップページ #atwiki www57.atwiki.jp/kuin/pages/1.h...
KuinのWIkiを作ってます。一人で作ってます。
けどWikiなのでみんなで作りましょう。協力お願いします~ #kuin
posted at 15:23:00
![](https://pbs.twimg.com/profile_images/1587020491423744000/46a13Lqx_normal.png)
"Vim があれば何でもできるんですよ、IDE とか要らないです" って言ってた奴が VC++ を強いられて数か月で "Visual Studio が無いと開発できない" って言いだしたしその手の言動は「ああはいはい食わず嫌い乙」とだけ思うようにしている
タグ:
posted at 13:21:15
![](https://pbs.twimg.com/profile_images/415663191658467328/S6Nr1RSi_normal.jpeg)
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://abs.twimg.com/sticky/default_profile_images/default_profile_0_normal.png)
非公開
タグ:
posted at xx:xx:xx
![](https://pbs.twimg.com/profile_images/378800000165181791/161ba4333f65f0929548655945d4874f_normal.png)