Android Open Source - Phylane Game Object






From Project

Back to project page Phylane.

License

The source code is released under:

COPYRIGHT 2014 TRISTON JONES

If you think the Android project Phylane 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.lvadt.phylane.model;
//from   ww w. j a  v  a 2 s  .  co  m
public class GameObject {

    //REAL Name, as in enum name value
    public String rName;
  String name;
  String description;
  double weight;
  double power;
  double density;
  double volume;
    double strength;
  int price;
  int id;
  
  //N = Object Name, wvd = Object Weight, Volume, or Density, p = Price, i = Id
  GameObject(String n, double wvd, int p, int i){
    name = n;
    weight = wvd;
    volume = wvd;
    density = wvd;
    price = p;
    id = i;
  }

    //Material constructor
    GameObject(String n, double wvd, int p, int i, double str){
        name = n;
        weight = wvd;
        volume = wvd;
        density = wvd;
        price = p;
        id = i;
        strength = str;
    }
  
  //Engine constructor, w = engine weight, pow = engine power
  GameObject(String n, double w, double pow, int p, int i){
    name = n;
    weight = w;
    power = pow;
    price = p;
    id = i;
  }

    public String getName(){
        return name;
    }

    public String getDescription(){
        return description;
    }

    public double getWeight(){
        return weight;
    }

    public double getPower(){
        return power;
    }

    public double getDensity(){
        return density;
    }

    public double getVolume(){
        return volume;
    }

    public int getPrice(){
        return price;
    }

    public int getId(){
        return id;
    }
}




Java Source Code List

com.lvadt.phylane.BuildConfig.java
com.lvadt.phylane.activity.Fly.java
com.lvadt.phylane.activity.HomeScreen.java
com.lvadt.phylane.activity.LevelComplete.java
com.lvadt.phylane.activity.LoadScreen.java
com.lvadt.phylane.activity.MainMenu.java
com.lvadt.phylane.activity.MessagePopup.java
com.lvadt.phylane.activity.Prefs.java
com.lvadt.phylane.activity.Splash.java
com.lvadt.phylane.activity.Store.java
com.lvadt.phylane.activity.Tutorial.java
com.lvadt.phylane.graphics.GLRenderer.java
com.lvadt.phylane.graphics.Sprite.java
com.lvadt.phylane.model.GameObject.java
com.lvadt.phylane.model.Level.java
com.lvadt.phylane.model.LoadingScreens.java
com.lvadt.phylane.model.Objects.java
com.lvadt.phylane.model.Plane.java
com.lvadt.phylane.model.Player.java
com.lvadt.phylane.model.WorldObject.java
com.lvadt.phylane.physics.Physics.java
com.lvadt.phylane.utils.Data.java
com.lvadt.phylane.utils.OnSwipeTouchListener.java
com.lvadt.phylane.utils.Sound.java