parent
0ca67870d6
commit
e0db7cc0e8
@ -0,0 +1,4 @@
|
||||
package com.trs.game;
|
||||
|
||||
public class StaticMath {
|
||||
}
|
||||
@ -1,4 +1,18 @@
|
||||
package com.trs.game.model;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Model {
|
||||
private Monster monster;
|
||||
private ArrayList<Wall> walls;
|
||||
|
||||
public Model(){
|
||||
monster = new Monster();
|
||||
walls = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void timerStep(){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
package com.trs.game.model;
|
||||
|
||||
import com.badlogic.gdx.math.Rectangle;
|
||||
|
||||
public class PermWall implements Wall {
|
||||
|
||||
private double rotation;
|
||||
private Rectangle rect;
|
||||
|
||||
public PermWall(double rotation, Rectangle rect){
|
||||
this.rotation = rotation;
|
||||
this.rect = rect;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Wall timerStep() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public double getRotation() {
|
||||
return rotation;
|
||||
}
|
||||
|
||||
public void setRotation(double rotation) {
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
public Rectangle getRect() {
|
||||
return rect;
|
||||
}
|
||||
|
||||
public void setRect(Rectangle rect) {
|
||||
this.rect = rect;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.trs.game.model;
|
||||
|
||||
public class Projectile {
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.trs.game.model;
|
||||
|
||||
|
||||
import com.badlogic.gdx.math.Rectangle;
|
||||
|
||||
public class TempWall implements Wall {
|
||||
|
||||
private double rotation;
|
||||
private Rectangle rect;
|
||||
private int lifetime;
|
||||
|
||||
public TempWall(double rotation, Rectangle rect, int lifetime){
|
||||
this.rotation = rotation;
|
||||
this.rect = rect;
|
||||
this.lifetime = lifetime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Wall timerStep() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public double getRotation() {
|
||||
return rotation;
|
||||
}
|
||||
|
||||
public void setRotation(double rotation) {
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
public Rectangle getRect() {
|
||||
return rect;
|
||||
}
|
||||
|
||||
public void setRect(Rectangle rect) {
|
||||
this.rect = rect;
|
||||
}
|
||||
|
||||
public int getLifetime() {
|
||||
return lifetime;
|
||||
}
|
||||
|
||||
public void setLifetime(int lifetime) {
|
||||
this.lifetime = lifetime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package com.trs.game.model;
|
||||
|
||||
public interface Wall {
|
||||
public Wall timerStep();
|
||||
}
|
||||
Loading…
Reference in new issue