Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean objectOnTile(int objectID, RSTile t) {
- RSObject[] arrayObjects = objects.getAllAt(t);
- for(int i = 0; i < arrayObjects.length; i++) {
- if(arrayObjects[i].equals(objects.getNearest(objectID))) {
- return true;
- }
- }
- return false;
- }
- private void doActionOnTile(int objectID, RSTile t, String action) {
- RSObject[] arrayObjects = objects.getAllAt(t);
- for(int i = 0; i < arrayObjects.length; i++) {
- if(arrayObjects[i].equals(objects.getNearest(objectID))) {
- if(arrayObjects[i] != null) {
- arrayObjects[i].doAction(action);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement