-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Brick #1
Conversation
- Renamed package from `com.github.codestorm.brick` to `com.github.codestorm.bounceverse.brick` for consistency. - Updated Google Java Format settings to use AOSP style.
thnhmai06
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.
Not evaluating the logic or engine compatibility, this commit seems to include the basic properties and methods.
- Attention: Consider whether certain properties should represent “has-a” or “is-a” relationships, and whether some states should be modeled as attributes at all.
- Important: The Javadoc is not complete yet. Please add comprehensive Javadoc for all classes and methods.
| public class Brick { | ||
| private int x, y, width, height; | ||
| private int hp; | ||
| private final int initialHp; |
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.
Not necessary
| private int x, y, width, height; | ||
| private int hp; | ||
| private final int initialHp; | ||
| private boolean destroyed; |
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 define destroyed as a method (depend on hp)
| @@ -0,0 +1,28 @@ | |||
| package com.github.codestorm.bounceverse.brick; | |||
|
|
|||
| public class PowerBrick extends Brick { | |||
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 use PowerUp as a attribute of Brick (The "rewards" after broke Brick)
| package com.github.codestorm.bounceverse.brick; | ||
|
|
||
| public class ProtectedBrick extends Brick { | ||
| private String shieldSide; |
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.
Must using Enum for shieldSide
* feat: Brick * feat(brick): add PowerBrick and update Brick, ExoplodeBrick, ProtectedBrick * docs(brick): add Javadoc for Brick, ExoplodeBrick, PowerBrick, ProtectedBrick * refactor(brick): remove NormalBrick and StrongBrick * refactor(brick): rename packages and update formatting settings - Renamed package from `com.github.codestorm.brick` to `com.github.codestorm.bounceverse.brick` for consistency. - Updated Google Java Format settings to use AOSP style. --------- Co-authored-by: Mai Thành <62001770+thnhmai06@users.noreply.github.com>
No description provided.