読者です 読者をやめる 読者になる 読者になる

いものやま。

雑多な知識の寄せ集め

変種オセロのスタート画面を作ってみた。(まとめ)

これまでの各記事は以下から。

クラス図

スタート画面についても、大雑把なクラス図だけ書いておく。
(※クラス名の後ろにコロンで区切って書いてあるのは、親クラス名)

==> ViewController, View, Scene <==

+--------------------+
| GameViewController |
+--------------------+
        |
        V
    +--------+
    | SKView |
    +--------+
        |
        V
+---------------------+
| StartScene: SKScene |
+---------------------+

----

==> Scene, etc. <==

+------------------------+
| PlayButtonNodeObserver |
+------------------------+
          A       
          | implement
          |
+---------------------+
| StartScene: SKScene |
+---------------------+
  |   |   | child
  |   |   V
  |   |  +------------------------------+
  |   |  | LabelButtonNode: SKLabelNode |
  |   |  +------------------------------+
  |   |
  |   | child
  |   V
  |  +------------------------------+
  |  | PlayButtonNode: SKSpriteNode |
  |  +------------------------------+
  |
  | child
  V
+--------------------------+
| ConfigNode: SKSpriteNode |
+--------------------------+

----

==> PlayButtonNode, etc <==

+------------------------------+
| PlayButtonNode: SKSpriteNode |
+------------------------------+
            |
            | notify
            V
  +------------------------+
  | PlayButtonNodeObserver |
  +------------------------+

----

==> LabelButtonNode, etc <==

+------------------------------+
| LabelButtonNode: SKLabelNode |
+------------------------------+
            |
            | notify
            V
  +-------------------------+
  | LabelButtonNodeObserver |
  +-------------------------+

----

==> ConfigNode, etc <==

+-------------------------+
| LabelButtonNodeObserver |
+-------------------------+
            A       
            | implement
            |
+--------------------------+
| ConfigNode: SKSpriteNode |
+--------------------------+
            |
            | child
            V
   +-----------------+
   | LabelButtonNode |
   +-----------------+

----

==> Config, etc <==

+---------------+
| <<singleton>> |
|    Config     |
+---------------+
       |
       V
+----------------+
| NSUserDefaults |
+----------------+

----

今日はここまで!