06/08/10 23:39:13 BnvyxuCB
一応>>5のズレ直しverを貼っておこう…。
+-----------------------+
| CEnemy |
+-----------------------+
| move() |
| (strategy->execute()) |
+-----------<>----------+
| strategy
|
|
+-----V-----+
| Strategy |
+-----------+
| execute() |
+-----A-----+
|
+------+------------+----------+
| |
+------+-------+ +------+------+
| AkabeeStrategy | | PinkyStrategy |
+--------------+ +-------------+
| execute() | | execute() |
+--------------+ +-------------+