From 4b0259fa287ff1d7a4edeaa2fa7734e523340373 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 12 Dec 2014 15:10:39 -0500 Subject: [PATCH] lib/scene2d: fixes documentation warnings Signed-off-by: Alexandre Terrasa --- lib/scene2d.nit | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/scene2d.nit b/lib/scene2d.nit index 12167c9..aa567e8 100644 --- 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') -- 1.7.9.5