Something went wrong on our end
-
Brutzman, Don authoredBrutzman, Don authored
BlankenbekerTruck.java 951 B
package MV3500Cohort2018JanuaryMarch.homework2;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//package mv3500code;
/**
* homework assignment
* @author Michael
*/
public class BlankenbekerTruck {
private float x;
private float y;
private float z;
/** Constructor */
public BlankenbekerTruck(){
x = 0;
y=0;
z=0;
}
/**
* move this entity
*/
public void move(){
x+=1.5;
y+=1.2;
z-=.2;
}
/**
*
* get x
* @return X value
*/
public float getX(){
return x;
}
/**
* get y
* @return Y value
*/
public float getY(){
return y;
}
/**
* get z
* @return Z value
*/
public float getZ(){
return z;
}
}