Added hud

This commit is contained in:
Ziver Koc 2007-04-23 16:26:39 +00:00
parent 7e309db351
commit 31692d8b4e
6 changed files with 110 additions and 64 deletions

View file

@ -108,9 +108,14 @@ public class BitmapText extends Entity{
} // Loop Until All 256 Are Built
}
/**
* Returns the bound of this class
*/
public Rectangle getBound() {
// TODO Auto-generated method stub
return null;
return new Rectangle(
(int)getLocation().getX(),
(int)getLocation().getY(),
16*(text!=null?text.length():0),16);
}
@Override