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 TypeMethodDescriptionvoidcreateViewport(Group group) Wraps the given Group in a Viewport.voidCalled by the game manager after calling theReferee's gameTurn method.voidCalled by the game manager after calling theReferee's onEnd method.voidCalled by the game manager after calling theReferee's init method.
-
Method Details
-
onGameInit
public void onGameInit()Description copied from interface:ModuleCalled by the game manager after calling theReferee's init method. The module must be registered to the game manager.- Specified by:
onGameInitin interfaceModule
-
onAfterGameTurn
public void onAfterGameTurn()Description copied from interface:ModuleCalled by the game manager after calling theReferee's gameTurn method. The module must be registered to the game manager.- Specified by:
onAfterGameTurnin interfaceModule
-
onAfterOnEnd
public void onAfterOnEnd()Description copied from interface:ModuleCalled by the game manager after calling theReferee's onEnd method. The module must be registered to the game manager.- Specified by:
onAfterOnEndin interfaceModule
-
createViewport
Wraps the given Group in a Viewport.- Parameters:
group- A group to wrap into a Viewport
-