Android Open Source - Phylane World 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  w ww. ja v  a  2  s .  c o  m*/
import android.graphics.Bitmap;
import android.graphics.Rect;

/**
 * Created by Triston on 4/29/2014.
 * Less resource heavy "sprite" class, which has no actual graphics
 * processing, mainly used in physics engine
 */
public class WorldObject {
    public float x, y;
    public Rect bounds = new Rect();
    public int ref;

    public WorldObject(float X, float Y, float width, float height, int reference) {
        x = X;
        y = Y;
        bounds.left = (int) x;
        bounds.top = (int) y;
        bounds.right = (int) (x + width);
        bounds.bottom = (int) (y + height);
        ref = reference;
    }

    public Bitmap getBmp(){
        return null;
    }
}




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