Class ViewportModule
java.lang.Object
com.codingame.gameengine.module.viewport.ViewportModule
- All Implemented Interfaces:
Module
The ViewportModule allows you to create a zoomable/draggable container.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createViewport
(Group group) Wraps the given Group in a Viewport.void
Called by the game manager after calling theReferee
's gameTurn method.void
Called by the game manager after calling theReferee
's onEnd method.void
Called by the game manager after calling theReferee
's init method.
-
Method Details
-
onGameInit
public void onGameInit()Description copied from interface:Module
Called by the game manager after calling theReferee
's init method. The module must be registered to the game manager.- Specified by:
onGameInit
in interfaceModule
-
onAfterGameTurn
public void onAfterGameTurn()Description copied from interface:Module
Called by the game manager after calling theReferee
's gameTurn method. The module must be registered to the game manager.- Specified by:
onAfterGameTurn
in interfaceModule
-
onAfterOnEnd
public void onAfterOnEnd()Description copied from interface:Module
Called by the game manager after calling theReferee
's onEnd method. The module must be registered to the game manager.- Specified by:
onAfterOnEnd
in interfaceModule
-
createViewport
Wraps the given Group in a Viewport.- Parameters:
group
- A group to wrap into a Viewport
-