Package mindustry.entities
Class EntityCollisions
java.lang.Object
mindustry.entities.EntityCollisions
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends mindustry.gen.Hitboxc>
voidcollide
(EntityGroup<T> groupa) static boolean
legsSolid
(int x, int y) void
move
(mindustry.gen.Hitboxc entity, float deltax, float deltay) void
move
(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) void
moveCheck
(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) void
moveDelta
(mindustry.gen.Hitboxc entity, float deltax, float deltay, int r, boolean x, EntityCollisions.SolidPred solidCheck) boolean
overlapsTile
(Rect rect, EntityCollisions.SolidPred solidChecker) static boolean
solid
(int x, int y) <T extends mindustry.gen.Hitboxc>
voidupdatePhysics
(EntityGroup<T> group) static boolean
waterSolid
(int x, int y)
-
Constructor Details
-
EntityCollisions
public EntityCollisions()
-
-
Method Details
-
moveCheck
public void moveCheck(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) -
move
public void move(mindustry.gen.Hitboxc entity, float deltax, float deltay) -
move
public void move(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) -
moveDelta
public void moveDelta(mindustry.gen.Hitboxc entity, float deltax, float deltay, int r, boolean x, EntityCollisions.SolidPred solidCheck) -
overlapsTile
-
updatePhysics
-
legsSolid
public static boolean legsSolid(int x, int y) -
waterSolid
public static boolean waterSolid(int x, int y) -
solid
public static boolean solid(int x, int y) -
collide
-