Skip to content
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

quantité de végétaux sur une case visible. #27

Closed
16 of 17 tasks
HydrolienF opened this issue Sep 22, 2020 · 2 comments
Closed
16 of 17 tasks

quantité de végétaux sur une case visible. #27

HydrolienF opened this issue Sep 22, 2020 · 2 comments
Assignees
Labels
done Added functionality graphics Something about graphic interface new content Something new for the game
Milestone

Comments

@HydrolienF
Copy link
Owner

HydrolienF commented Sep 22, 2020

  • Blade extends Point { double direction, byte length}
  • Every case have a GBlade that extends Liste
  • adding grass (= insect food) add random blades at the end of the GBlade.
  • removing grass remove blades (create sub list from GBlade by removing the x fisrt Blade).
  • Blade can be draw with a grass green line.
  • for each Case : for(Blade blade : GBLade) { blade.draw(g, xCaseOfset, yCaseOfset);}
  • addBLade(Case c, int quantity) & removeBlade(Case c, int quantity) are in view with default do nothing.
  • test that addBLade(Case c, int quantity) & removeBlade(Case c, int quantity) influ over quantity of the blade on the Case c.
  • blade are in big quantity at the start of the game
  • blade are null if bladeByTurn==0
  • bladeGrass & bladeMoss dont have the same color
  • foodInsecteParTourTemp depend of getPartie().getCarte().getAbondanceHerbe()
  • bladeMoss are curved.

  • low graphics mod with a green fiter insted of each Blade.
  • graphics option to represent grass as the filter or Blade.
  • Draw Blade on an image & draw the image over FPanelCarte
  • redraw Blade only when a boolean have been update in ViewGui.

La quantité de végétaux sur une case peut-être représentée par un niveau de remplissage sur une feuille.
Si la feuille est rempli a <25% elle en rouge si <50% orange sinon verte sauf si elle n’as pas de végétation dans ce cas soit pas de feuille soit feuille grise.
La feuille est plus ou moins grande en fonction de la quantité max de végétation.

@HydrolienF HydrolienF added new content Something new for the game graphics Something about graphic interface labels Sep 22, 2020
@HydrolienF HydrolienF added this to the 2.0 milestone Oct 19, 2020
@HydrolienF HydrolienF self-assigned this Oct 20, 2020
@HydrolienF HydrolienF modified the milestones: 2.0, GUI 2D update Mar 23, 2021
@HydrolienF
Copy link
Owner Author

HydrolienF commented Apr 6, 2021

Un autre trucs stylé serait d'avoir autant de brins d'herbes que de nourriture pour insecte sur la case et qu'on supprime ou ajoute des brin herbe a chaque fois que la nourriture insectes augmente ou diminue.
Ca voudrait dire que chaque case contient une liste de brin d'herbe.

@HydrolienF
Copy link
Owner Author

Les brin d'herbe on des valeur byte x et byte y comprise en 0 et 100 qui permette de placer leur attache au sol a un endroit a x% dans l'axe des x et y% dans l'axe des y.
Il ont aussi une variable byte type qui donne leur style comprise entre 0 et n avec n+1 le nombre d'image de brin d'herbe dans le dossier d'image.

HydrolienF added a commit that referenced this issue Jan 17, 2022
HydrolienF added a commit that referenced this issue Jan 17, 2022
@HydrolienF HydrolienF added the doing an issue that have started label Jan 17, 2022
HydrolienF added a commit that referenced this issue Jan 19, 2022
HydrolienF added a commit that referenced this issue Jan 19, 2022
HydrolienF added a commit that referenced this issue Jan 20, 2022
HydrolienF added a commit that referenced this issue Jan 20, 2022
HydrolienF added a commit that referenced this issue Jan 20, 2022
@HydrolienF HydrolienF added done Added functionality and removed doing an issue that have started labels Jan 21, 2022
HydrolienF added a commit that referenced this issue Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Added functionality graphics Something about graphic interface new content Something new for the game
Projects
None yet
Development

No branches or pull requests

1 participant