1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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;
- }
- }
|