Back to project page crash-landing.
The source code is released under:
MIT License
If you think the Android project crash-landing listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.balitechy.crashlanding.models; // w w w .ja v a 2 s .co m import com.badlogic.gdx.math.Vector2; public abstract class MovableObject extends BaseObject{ protected float speed; protected Vector2 velocity; public MovableObject(Vector2 position, float width, float height, Vector2 velocity, float speed) { super(position, width, height); this.velocity = velocity; this.speed = speed; } public Vector2 getVelocity() { return velocity; } public float getSpeed() { return speed; } public void setSpeed(float speed) { this.speed = speed; } }