nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f60fcf
)
lib/scene2d: fixes documentation warnings
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 20:10:39 +0000
(15:10 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 12 Jan 2015 08:18:07 +0000
(09:18 +0100)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/scene2d.nit
patch
|
blob
|
history
diff --git
a/lib/scene2d.nit
b/lib/scene2d.nit
index
12167c9
..
aa567e8
100644
(file)
--- a/
lib/scene2d.nit
+++ b/
lib/scene2d.nit
@@
-48,9
+48,16
@@
class Sprite
# height of the sprite
var height: Int = 100 is writable
+ # X coordinate of left side.
fun left: Int do return x - width/2
+
+ # X coordinate of right side.
fun right: Int do return x + width/2
+
+ # Y coordinate of top.
fun top: Int do return y - height/2
+
+ # Y coordinate of bottom.
fun bottom: Int do return y + height/2
# x velocity (applied by `update')