nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: transform all old writable in annotations
[nit.git]
/
examples
/
leapfrog
/
leapfrog.nit
diff --git
a/examples/leapfrog/leapfrog.nit
b/examples/leapfrog/leapfrog.nit
index
ac8cff0
..
6aa6f48
100644
(file)
--- a/
examples/leapfrog/leapfrog.nit
+++ b/
examples/leapfrog/leapfrog.nit
@@
-34,7
+34,7
@@
class Animal
# The value indicate the number of step that remain to be stunt
#
# If a animal is stunned, it cannot move horizontally
# The value indicate the number of step that remain to be stunt
#
# If a animal is stunned, it cannot move horizontally
- var stunt_ttl: Int writable = 0
+ var stunt_ttl: Int = 0 is writable
# Common update for animal
# handle stunt and edge collision
# Common update for animal
# handle stunt and edge collision