You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . |
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· |
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ |
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ |
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ |
|
// Magicbane Emulator Project © 2013 - 2022 |
|
// www.magicbane.com |
|
|
|
|
|
package engine.objects; |
|
|
|
import java.awt.geom.Line2D; |
|
|
|
|
|
public class Colliders { |
|
|
|
|
|
public float startX; |
|
public float startY; |
|
public float endX; |
|
public float endY; |
|
private Line2D collider; |
|
private int doorID; |
|
private boolean link = false; |
|
|
|
public Colliders(Line2D collider, int doorID, boolean link) { |
|
super(); |
|
this.collider = collider; |
|
this.doorID = doorID; |
|
this.link = link; |
|
} |
|
|
|
public Colliders(float startX, float startY, float endX, float endY, int doorID, boolean link) { |
|
super(); |
|
this.startX = startX; |
|
this.startY = startY; |
|
this.endX = endX; |
|
this.endY = endY; |
|
this.doorID = doorID; |
|
this.link = link; |
|
} |
|
|
|
|
|
public int getDoorID() { |
|
return doorID; |
|
} |
|
|
|
public Line2D getCollider() { |
|
return collider; |
|
} |
|
|
|
|
|
public boolean isLink() { |
|
return link; |
|
} |
|
|
|
|
|
public void setLink(boolean link) { |
|
this.link = link; |
|
} |
|
|
|
|
|
}
|
|
|