Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Conversation

@ManhTanTran
Copy link
Collaborator

No description provided.

ManhTanTran and others added 5 commits September 29, 2025 17:13
- 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 thnhmai06 self-requested a review September 30, 2025 17:32
Copy link
Member

@thnhmai06 thnhmai06 left a 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;
Copy link
Member

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;
Copy link
Member

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 {
Copy link
Member

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;
Copy link
Member

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

@thnhmai06 thnhmai06 self-requested a review September 30, 2025 17:41
@thnhmai06 thnhmai06 merged commit 31fdbda into main Sep 30, 2025
4 of 5 checks passed
@thnhmai06 thnhmai06 deleted the Brick-dev branch September 30, 2025 17:43
thnhmai06 added a commit that referenced this pull request Oct 27, 2025
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants