Android Open Source - catchanimals Controller Basket






From Project

Back to project page catchanimals.

License

The source code is released under:

GNU General Public License

If you think the Android project catchanimals listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ricardorb.controllers;
// w ww  .ja  va  2s . co  m
/**
 * I can abstract the controls with this class
 * 
 * @author RicardoRB
 *
 */
public class ControllerBasket {
  
  private boolean moveL;
  private boolean moveR;
  private boolean drag;
  private float dragX;
  private float dragY;
  
  public boolean isMoveL() {
    return moveL;
  }

  public void setMoveL(boolean moveL) {
    this.moveL = moveL;
  }

  public boolean isMoveR() {
    return moveR;
  }

  public void setMoveR(boolean moveR) {
    this.moveR = moveR;
  }

  public boolean isDrag() {
    return drag;
  }

  public void setDrag(boolean drag) {
    this.drag = drag;
  }

  public float getDragX() {
    return dragX;
  }

  public void setDragX(float dragX) {
    this.dragX = dragX;
  }

  public float getDragY() {
    return dragY;
  }

  public void setDragY(float dragY) {
    this.dragY = dragY;
  }
  
}




Java Source Code List

com.ricardorb.catchanimals.Assets.java
com.ricardorb.catchanimals.CatchAnimals.java
com.ricardorb.catchanimals.android.AndroidLauncher.java
com.ricardorb.catchanimals.desktop.DesktopLauncher.java
com.ricardorb.controllers.ControllerBasket.java
com.ricardorb.controllers.ControllerOption.java
com.ricardorb.inputs.InputBasket.java
com.ricardorb.screens.GameScreen.java
com.ricardorb.screens.MainMenuScreen.java
com.ricardorb.screens.OptionScreen.java
com.ricardorb.sprites.Animal.java
com.ricardorb.sprites.Basket.java
com.ricardorb.sprites.Element.java