GameObject Class
This class is responsible for store the coordinates (x,y) of the image, and its dimension(width, height).
Ps.: All the classes, GameImage, Animation and Sprite inherits from GameObject class and has the same attributes shown bellow:
The attributes x, y, width e height are public, so you can access them like this::
GameObject obj = new GameObject(); obj.x = 100; //Sets 100 to the coordinate X of the object obj.y = 385; //Sets 385 to the coordinate Y of the object obj.width = 20; //Sets 20 to the object's width obj.height = 29; //Sets 29 to the object's height
UFF - Universidade Federal Fluminense - Institudo de Computação - Ciência da Computação