Skip to content

Conversation

@co012
Copy link
Collaborator

@co012 co012 commented May 15, 2022

Description

Checklist

  • Included code to test these changes
  • Updated Jira

@co012 co012 marked this pull request as ready for review May 15, 2022 13:51
Copy link
Collaborator

@ksiek127 ksiek127 left a 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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@co012 co012 merged commit 3daa7dc into master May 15, 2022
@co012 co012 deleted the @co012/RPG-107_actions branch May 15, 2022 15:52
* A marker interface for action classes.
*/
public interface Action {
Action VOID = new Action() {};
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for VOID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants