Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addCustomEvent (
- new Condition("nearWalls") {
- public boolean test()
- {
- return getX() < 10 ||
- getX() > getBattleFieldWidth() - 10 ||
- getY() < 10 ||
- getY() > getBattleFieldHeight() - 10;
- }
- }
- );
Add Comment
Please, Sign In to add comment