Path: blob/master/SLICK_HOME/src/org/newdawn/slick/state/BasicGameState.java
1457 views
package org.newdawn.slick.state;12import org.newdawn.slick.GameContainer;3import org.newdawn.slick.Input;4import org.newdawn.slick.SlickException;56/**7* A simple state used an adapter so we don't have to implement all the event methods8* every time.9*10* @author kevin11*/12public abstract class BasicGameState implements GameState {13/**14* @see org.newdawn.slick.ControlledInputReciever#inputStarted()15*/16public void inputStarted() {1718}1920/**21* @see org.newdawn.slick.InputListener#isAcceptingInput()22*/23public boolean isAcceptingInput() {24return true;25}2627/**28* @see org.newdawn.slick.InputListener#setInput(org.newdawn.slick.Input)29*/30public void setInput(Input input) {31}3233/**34* @see org.newdawn.slick.InputListener#inputEnded()35*/36public void inputEnded() {37}3839/**40* @see org.newdawn.slick.state.GameState#getID()41*/42public abstract int getID();4344/**45* @see org.newdawn.slick.InputListener#controllerButtonPressed(int, int)46*/47public void controllerButtonPressed(int controller, int button) {48}4950/**51* @see org.newdawn.slick.InputListener#controllerButtonReleased(int, int)52*/53public void controllerButtonReleased(int controller, int button) {54}5556/**57* @see org.newdawn.slick.InputListener#controllerDownPressed(int)58*/59public void controllerDownPressed(int controller) {60}6162/**63* @see org.newdawn.slick.InputListener#controllerDownReleased(int)64*/65public void controllerDownReleased(int controller) {66}6768/**69* @see org.newdawn.slick.InputListener#controllerLeftPressed(int)70*/71public void controllerLeftPressed(int controller) {7273}7475/**76* @see org.newdawn.slick.InputListener#controllerLeftReleased(int)77*/78public void controllerLeftReleased(int controller) {79}8081/**82* @see org.newdawn.slick.InputListener#controllerRightPressed(int)83*/84public void controllerRightPressed(int controller) {85}8687/**88* @see org.newdawn.slick.InputListener#controllerRightReleased(int)89*/90public void controllerRightReleased(int controller) {91}9293/**94* @see org.newdawn.slick.InputListener#controllerUpPressed(int)95*/96public void controllerUpPressed(int controller) {97}9899/**100* @see org.newdawn.slick.InputListener#controllerUpReleased(int)101*/102public void controllerUpReleased(int controller) {103}104105/**106* @see org.newdawn.slick.InputListener#keyPressed(int, char)107*/108public void keyPressed(int key, char c) {109}110111/**112* @see org.newdawn.slick.InputListener#keyReleased(int, char)113*/114public void keyReleased(int key, char c) {115}116117/**118* @see org.newdawn.slick.InputListener#mouseMoved(int, int, int, int)119*/120public void mouseMoved(int oldx, int oldy, int newx, int newy) {121}122123/**124* @see org.newdawn.slick.InputListener#mouseDragged(int, int, int, int)125*/126public void mouseDragged(int oldx, int oldy, int newx, int newy) {127}128129/**130* @see org.newdawn.slick.InputListener#mouseClicked(int, int, int, int)131*/132public void mouseClicked(int button, int x, int y, int clickCount) {133}134135/**136* @see org.newdawn.slick.InputListener#mousePressed(int, int, int)137*/138public void mousePressed(int button, int x, int y) {139}140141/**142* @see org.newdawn.slick.InputListener#mouseReleased(int, int, int)143*/144public void mouseReleased(int button, int x, int y) {145}146147/**148* @see org.newdawn.slick.state.GameState#enter(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)149*/150public void enter(GameContainer container, StateBasedGame game) throws SlickException {151}152153/**154* @see org.newdawn.slick.state.GameState#leave(org.newdawn.slick.GameContainer, org.newdawn.slick.state.StateBasedGame)155*/156public void leave(GameContainer container, StateBasedGame game) throws SlickException {157}158159/**160* @see org.newdawn.slick.InputListener#mouseWheelMoved(int)161*/162public void mouseWheelMoved(int newValue) {163}164165}166167168