Skip to content
Snippets Groups Projects
Commit 7cd7893c authored by Brian's avatar Brian
Browse files

Merge origin/master

parents d14dbe4f c9474336
No related branches found
No related tags found
No related merge requests found
//package homework2;
/**
* MV3500
*
* Entity
*
* @author Douglas Yamashita de Moura
* @version 20180227
*
*/
public class YamashitaDeMouraMulticastEntity {
private String name;
private float x;
private float y;
private float z;
private float speed;
public YamashitaDeMouraMulticastEntity (String name, float x, float y, float z, float speed) {
this.name = name;
this.x = x;
this.y = y;
this.z = z;
this.speed = speed;
}
/**
* @return the x
*/
public float getX() {
return x;
}
/**
* @param x the x to set
*/
public void setX(float x) {
this.x = x;
}
/**
* @return the y
*/
public float getY() {
return y;
}
/**
* @param y the y to set
*/
public void setY(float y) {
this.y = y;
}
/**
* @return the z
*/
public float getZ() {
return z;
}
/**
* @param z the z to set
*/
public void setZ(float z) {
this.z = z;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the velocity
*/
public float getVelocity() {
return speed;
}
/**
* @param velocity the velocity to set
*/
public void setVelocity(float velocity) {
this.speed = velocity;
}
}
......@@ -21,8 +21,8 @@ public class YamashitaDeMouraMulticastSender {
public static void main(String[] args)
{
YamashitaDeMouraEntity entityA = new YamashitaDeMouraEntity("Alpha", 0, 0, 0, 2);
YamashitaDeMouraEntity entityB = new YamashitaDeMouraEntity("Bravo", 0, 0, 0, 3);
YamashitaDeMouraMulticastEntity entityA = new YamashitaDeMouraMulticastEntity("Alpha", 0, 0, 0, 2);
YamashitaDeMouraMulticastEntity entityB = new YamashitaDeMouraMulticastEntity("Bravo", 0, 0, 0, 3);
try
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment