123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- package me.hammerle.supersnuvi.tiles;
- import me.hammerle.supersnuvi.entity.Entity;
- import me.hammerle.supersnuvi.util.Face;
- import me.hammerle.supersnuvi.gamelogic.Level;
- public abstract class Tile
- {
- public final static int SIZE = 32;
- public final static float SIZE_SCALE = SIZE / 32.0f;
-
- public boolean shouldAiUseCollisionBox(int x, int y, Level l)
- {
- return true;
- }
-
- public void onEntityCollide(Entity ent, int x, int y, Face face, Level l)
- {
-
- }
-
- public void tick()
- {
- }
-
- public void reset(Level l)
- {
- }
-
- public void reset(int x, int y, Level l)
- {
- }
-
- public int getBottleScore()
- {
- return 0;
- }
-
- public float getTextureMinX(int x, int y, Level l)
- {
- return 0.0f;
- }
-
- public float getTextureMaxX(int x, int y, Level l)
- {
- return 0.0625f;
- }
-
- public float getTextureMinY(int x, int y, Level l)
- {
- return 0.0f;
- }
-
- public float getTextureMaxY(int x, int y, Level l)
- {
- return 0.0625f;
- }
- public float getOffsetX()
- {
- return 0.0f;
- }
-
- public float getOffsetY()
- {
- return 0.0f;
- }
-
- public float getWidth()
- {
- return Tile.SIZE;
- }
-
- public float getHeight()
- {
- return Tile.SIZE;
- }
-
- public boolean shouldRender(int x, int y, Level l)
- {
- return true;
- }
-
- public boolean isMoveColliding(float minX, float minY, float maxX, float maxY, int x, int y, Level l)
- {
- return false;
- }
-
- public boolean isColliding(float minX, float minY, float maxX, float maxY, int x, int y, Level l)
- {
- return false;
- }
-
- public Face getCollidingFace(float minX, float minY, float maxX, float maxY, int x, int y, Level l)
- {
- return Face.NULL;
- }
-
- public final boolean hasMoveBox(Level l)
- {
- return isMoveColliding(0.0f, 0.0f, Tile.SIZE, Tile.SIZE, 0, 0, l);
- }
- }
|