Skip to content

Commit 29133d5

Browse files
committed
document the methods called by the application in the controller
1 parent ce0f1a9 commit 29133d5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Specs.pod

+9
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,13 @@ controller and initialize it, using any additional argument in the
172172
"new" call. It then sets the name of the state and the active
173173
controller.
174174

175+
=head3 Methods called in the controller
176+
177+
There is no strong type checking in the application, so the only
178+
requirement made by the application is that the controller support
179+
"new", "activate" and "deactivate". When the game transits to a new
180+
state it will call "new" on the controller of the target state, call
181+
"deactivate" in the controller being decomissioned and "activate" in
182+
the new controller object.
183+
175184
=cut

0 commit comments

Comments
 (0)