Android Open Source - ARGiE Quest Node






From Project

Back to project page ARGiE.

License

The source code is released under:

MIT License

If you think the Android project ARGiE 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 headrick.brandon.models;
/*from   w ww.  j av a  2 s  . c o m*/
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;

/**
 * Quest Object that holds individual quest data.
 * @author Brandon Headrick
 *
 */
public class QuestNode {
  private String title = null, script = null, answer = null;
    private boolean forceUserResponse = false;
  private LatLng point;
  private int id;  //only used for database
    private double radialThreshold;
  private Marker mapMarker;
  
  public QuestNode(){
    
  }

    //constructor used when creating objects outside of database influence
  public QuestNode(String title, LatLng point, String script, String answer, double radialThreshold){
    this.title = title;
    this.point = point;
    this.script = script;
    this.answer = answer;
        this.radialThreshold = radialThreshold;
    }
  
  //constructor to be used when creating objects from a database
  public QuestNode(int id, String title, LatLng point, String script, String answer, double radialThreshold){
    this.id = id;
    this.title = title;
    this.point = point;
    this.script = script;
    this.answer = answer;
        this.radialThreshold = radialThreshold;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getScript() {
    return script;
  }

  public void setScript(String script) {
    this.script = script;
  }

  public String getAnswer() {
    return answer;
  }

  public void setAnswer(String answer) {
    this.answer = answer;
  }
  
  public LatLng getPoint() {
    return point;
  }

  public void setPoint(LatLng point) {
    this.point = point;
  }
  
  public double getLatitude(){
    return point.latitude;
  }
  
  public double getLongitude(){
    return point.longitude;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public Marker getMapMarker() {
    return mapMarker;
  }

  public void setMapMarker(Marker mapMarker) {
    this.mapMarker = mapMarker;
  }

    public void setRadialThreshold(double radialThreshold) {
        this.radialThreshold = radialThreshold;
    }

    public double getRadialThreshold() {
        return radialThreshold;
    }

    public boolean isForceUserResponse() {
        return forceUserResponse;
    }

    public void setForceUserResponse(boolean forceUserResponse) {
        this.forceUserResponse = forceUserResponse;
    }
}




Java Source Code List

android.UnusedStub.java
headrick.brandon.activities.AboutScreenActivity.java
headrick.brandon.activities.CreateGameActivity.java
headrick.brandon.activities.EditQuestActivity.java
headrick.brandon.activities.GameChooserActivity.java
headrick.brandon.activities.GameOptionsActivity.java
headrick.brandon.activities.RunGameActivity.java
headrick.brandon.activities.SettingsActivity.java
headrick.brandon.activities.SplashActivity.java
headrick.brandon.activities.TitleScreenActivity.java
headrick.brandon.gamedata.Constants.java
headrick.brandon.gamedata.GameSettingsState.java
headrick.brandon.gamedata.GameState.java
headrick.brandon.models.BaseGame.java
headrick.brandon.models.QuestNode.java
headrick.brandon.models.WaypointGame.java
headrick.brandon.utilities.DBReadWrite.java
headrick.brandon.utilities.DBTest.java
headrick.brandon.utilities.DatabaseHandler.java
headrick.brandon.utilities.MapHelper.java