initial commit engine begining

This commit is contained in:
mmarc471@gmail.com
2020-09-06 13:50:01 +02:00
commit d095a3418f
38 changed files with 1075 additions and 0 deletions
@@ -0,0 +1,25 @@
package com.iutlaval.myapplication;
import android.graphics.Rect;
public class InvalidDataException extends Throwable {
private String name;
private float x;
private float y;
public InvalidDataException(String name, Rect rectangle)
{
x = rectangle.width();
y = rectangle.height();
this.name=name;
}
public InvalidDataException(String name,float x,float y)
{
this.y=y;
this.x=x;
}
public String getDetail() {
return "name " + name + " x:" + x +" y:"+ y;
}
}