Skip to content

Commit

Permalink
Merge pull request projet-gl2#21 from projet-gl2/elie
Browse files Browse the repository at this point in the history
Ajout du GameComponent et implémentation sur la fenêtre de jeu
  • Loading branch information
tetelie authored Apr 2, 2024
2 parents 639a8af + ed4acdd commit b940464
Show file tree
Hide file tree
Showing 14 changed files with 514 additions and 75 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

142 changes: 83 additions & 59 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/main/java/fr/hashimiste/core/gui/Theme.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ public interface Theme {
* @return une instance de Color représentant la couleur du texte.
*/
Color getTextColor();

/**
* Renvoie la couleur des ponts potentiels.
*
* @return une instance de Color représentant la couleur des ponts potentiels.
*/
Color getPotentialBridgeColor();
}
4 changes: 2 additions & 2 deletions src/main/java/fr/hashimiste/impl/gui/builder/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public static void main(String[] args) {
private void updateLayout() {
gridPanel.setLayout(new GridLayout((int) grille.getDimension().getHeight(), (int) grille.getDimension().getWidth()));
gridPanel.removeAll();
for (int x = 0; x < grille.getDimension().getHeight(); x++) {
for (int y = 0; y < grille.getDimension().getWidth(); y++) {
for (int x = 0; x < grille.getDimension().getWidth(); x++) {
for (int y = 0; y < grille.getDimension().getHeight(); y++) {
Ile ile = grille.getIle(x, y);
if (ile != null) {
gridPanel.add(new Cell(ile, grille));
Expand Down
Loading

0 comments on commit b940464

Please sign in to comment.