Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int rot = getRotation();
- if(status.istSystemOK() == true)
- {
- if (richtung=="vorne" && rot==0 || richtung=="rechts" && rot==270 || richtung=="links" && rot==90)
- {
- if(getOneObjectAtOffset(1,0,Huegel.class)!=null)
- {
- return true;
- }
- }
- if (richtung=="vorne" && rot==180 || richtung=="rechts" && rot==90 || richtung=="links" && rot==270)
- {
- if(getOneObjectAtOffset(-1,0,Huegel.class)!=null)
- {
- return true;
- }
- }
- if (richtung=="vorne" && rot==90 || richtung=="rechts" && rot==0 || richtung=="links" && rot==180)
- {
- if(getOneObjectAtOffset(0,1,Huegel.class)!=null)
- {
- return true;
- }
- }
- if (richtung=="vorne" && rot==270 || richtung=="rechts" && rot==180 || richtung=="links" && rot==0)
- {
- if(getOneObjectAtOffset(0,-1,Huegel.class)!=null)
- {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement