[sdljava-users] Modification to proposed class hierarchy
Status: Beta
Brought to you by:
ivan_ganza
From: Chris D. <Des...@nt...> - 2005-02-22 18:08:23
|
Sorry, just a few minor changes to the hierarchy -- the indentation is messed up, and I omitted some setter methods by accident. I'm not sure if the indentation was due to my e-mail client, or the fact that it was 5am in the morning ;) SDLPoint: int x int y constructor(int x, int y): ... int getX() int getY() void setX() void setY() SDLSize: int width int height constructor(int width, int height): ... int getWidth() int getHeight() void setWidth() void setHeight() SDLRect: SDLPoint topLeft SDLSize size constructor(SDLSize): x = 0, y = 0, ... constructor(SDLPoint, SDLSize): ... SDLPoint getTopLeft() SDLPoint getTopRight() SDLPoint getBottomLeft() SDLPoint getBottomRight() SDLPoint getCenter() SDLSize getSize() void setTopLeft() void setCenter() -- |>>> Dessimat0r /`\ | "We cannot turn back time, but we can _ _|_ _ move it forwards with our own hands." |;|_|;|_|;| \\. . / [www: http://codeknight.net ] \\: . / [e-mail: des...@nt... ] ||: U | /`\ [icq: 21477909 ] ||:. | [msn: des...@nt... ] \,/ ||: U.| ||: | \,/ ||: , | ____--`~--- '--~~__ __ ----~ - ~`---, -~--~ ~---__ ,--~' ~~----___ |