-
Notifications
You must be signed in to change notification settings - Fork 16
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
Libgdx new version #1505
Libgdx new version #1505
Conversation
This reverts commit 532e3d7.
…ovements in ArrowListener
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.
Dejé una duda picando ahí, pero da para charlar y bien podría resolverse en otro PR si querés mergear este.
La otra cosa que me queda picando para charlar, es si está bien que la forma de cancelar un listener está bien que sea un String. Otra opción que vi por ahí, es que el propio fwk devuelva un objeto que sirve para cancelar. Eso evita que yo tenga que estar construyendo strings que garanticen unicidad.
override toString() { getX + "@" + getY } | ||
override toString() { getX + "@" + getY } | ||
|
||
def up() { |
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.
Esto me da dudas, lo que yo entiendo es que si estoy en el borde del tablero y hago up me da la misma posición. ¿No sería más prolijo tirar una excepción + tener métodos para saber si up existe? Me parece medio peligroso porque estos métodos no devuelven lo que dicen.
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.
Entiendo que el character necesita eso, pero ¿por qué no lo implementamos en character?
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.
Pasó mucho tiempo, pero recuerdo ir caminando por Florida y haber pensado exactamente eso, en dejar que Position se vaya del tablero y ya, porque el Listener de Character ya tiene una forma de no irse. Así que sí, lo voy a cambiar.
@@ -97,6 +97,26 @@ abstract class VisualComponent { | |||
|
|||
def hideAttributes() { showAttributes = false } | |||
def showAttributes() { showAttributes = true } | |||
|
|||
def void up() { | |||
if (position.y < Gameboard.instance.height) |
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.
De hecho, veo que character ya tiene esa validación.
org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/messages.properties
Outdated
Show resolved
Hide resolved
Co-Authored-By: fdodino <fernando.dodino@gmail.com>
…e/messages.properties Co-Authored-By: fdodino <fernando.dodino@gmail.com>
La idea original de Alf era que se identificaran con Strings, lo que me parece que tiene como contra respetar la unicidad. Por otra parte tendría que mirar el código para saber qué tan complejo se vuelve devolver el objeto (ya que el Listener se crea del lado de Java), el string lo vuelve más fácil de usar desde diferentes contextos. Yo por ahora voy a hacer el toque de Position, yo mergearía y esperaría a alguna reunión donde podamos seguirla. |
Contiene varios features de Wollok Game que no son retrocompatibles.
No deberíamos mergear hasta liberar la versión 1.7.2 o bien si estamos seguros que ya no vamos a hacer releases por el resto de la cursada 2018