Posts by Caio Costa • 63 points
5 posts
-
3
votes1
answer125
viewsQ: Actionlistener does not identify the recovered button
My goal is to click the button Andar and then select on the board which direction the character will be moved to, as shown in the image: My button Andar has a ActionListener and is treated as…
-
0
votes1
answer43
viewsQ: I cannot change an attribute of my matrix
@EDIT Presenting a minimal example as requested: MAIN package teste; public class TESTE { public static void main(String[] args) { Tabuleiro cenario = new Tabuleiro(1); cenario.setVisibilidade(); }…
javaasked Caio Costa 63 -
0
votes1
answer429
viewsA: Difficulty moving character on board
The solution I found was the following: void movimentar(criatura tabuleiro[][10], criatura personagem,char classeE, int *saudeE, int *atcE, int *defE, int *lin, int *col, int *elixir){ // linha e…
canswered Caio Costa 63 -
1
votes1
answer429
viewsQ: Difficulty moving character on board
I have a matrix of structures as a board. My character starts at the position [0][0]: tabuleiro[0][0] = personagem; The character is displayed correctly in its initial position, but I can’t move it…
casked Caio Costa 63 -
1
votes1
answer326
viewsQ: "[Error] expected Expression before 'creature'" in function
The board is a "creature" of my struct: typedef struct{ int status; char classe; int saude; int def; int atc; char elixir; }criatura; No . h: void exibe(criatura tabuleiro[5][10]); // exibe o…
casked Caio Costa 63