-
Notifications
You must be signed in to change notification settings - Fork 0
@co012/rpg 107 actions #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ksiek127
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got a slight doubt about this 'distance < 1.5' in controller i pointed out in comment to controller.java, but the action logic itself looks good
| popupController.openTextImagePopup("Picked up an item!", objectView.getImage(), getWindowCenterX(), getWindowCenterY()); | ||
| objectView.setVisible(false); | ||
| currentModel.removeGameObject(object); | ||
| if (distance < 1.5) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the distance measured by squares? if yes, then 1.5 squares means i can pick up an item that is not adjacent to my square and this should not happen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into it
| * A marker interface for action classes. | ||
| */ | ||
| public interface Action { | ||
| Action VOID = new Action() {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should other types of actions be initiated here or is that just for VOID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for VOID
Description
Checklist