Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Dec 8, 2018
1 parent 1cb0003 commit ac81931
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ abstract class VisualComponent {
def showAttributes() { showAttributes = true }

def void up() {
if (position.y < Gameboard.instance.height)
if (position.y < Gameboard.instance.height - 1)
setPosition(getPosition.up())
}

Expand All @@ -114,7 +114,7 @@ abstract class VisualComponent {
}

def void right() {
if (position.x < Gameboard.instance.width)
if (position.x < Gameboard.instance.width - 1)
setPosition(getPosition.right())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ArrowListenerTest {
this.press("RIGHT")

arrowListener.notify(gameboard)
Assert.assertEquals(new WGPosition(5, 4), character.position)
Assert.assertEquals(new WGPosition(4, 4), character.position)
}

def press(String key) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ WollokInterpreter_operationNotSupported = Operation "{0}" not supported by inter
WollokInterpreter_operatorNotSupported = Operator "{0}" not supported for {1}
WollokInterpreter_constructorCallNotAllowed = Impossible to call a constructor on anything besides a class
WollokInterpreter_binaryOperationNotCompoundAssignment = Binary operation is not a compound assignment
WollokInterpreter_visualObjectWithoutPosition = Visual object doesn't have any position: {0}
WollokInterpreter_visualObjectWithoutPosition = Visual object doesn't have any position attribute: {0}
WollokInterpreter_illegalOperationEmptyCollection = Illegal operation ''{0}'' on empty collection
WollokDslInterpreter_native_class_not_found = You declared a native method but there is no native definition for {0} (maybe it is a pure Wollok definition)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WollokInterpreter_operationNotSupported = Operaci\u00F3n '{0}' no soportada por
WollokInterpreter_operatorNotSupported = {1} no soporta el operador {0}
WollokInterpreter_constructorCallNotAllowed = No puede llamar a un constructor de algo que no sea una clase
WollokInterpreter_binaryOperationNotCompoundAssignment = La operaci\u00F3n binaria no es una asignaci\u00F3n compuesta
WollokInterpreter_visualObjectWithoutPosition = El objeto visual no tiene posici\u00F3n: {0}
WollokInterpreter_visualObjectWithoutPosition = El objeto visual no tiene un atributo 'position': {0}
WollokInterpreter_illegalOperationEmptyCollection = Operaci\u00F3n '{0}' no permitida en colecciones vac\u00EDas
WollokDslInterpreter_native_class_not_found = Declar\u00F3 un \u00E9todo nativo pero no se encontr\u00F3 la definici\u00F3n nativa de {0} (posiblemente se trate de un elemento definido s\u00F3lo en Wollok)

Expand Down

0 comments on commit ac81931

Please sign in to comment.