Inheritance diagram for RCViewPort::
Public Methods | |
RCViewPort (RCWorld World) | |
Constructor. More... | |
void | paint (Graphics g) |
overload paint. More... | |
int | ccw (int x0, int y0, int x1, int y1, int x2, int y2) |
compute ... More... | |
boolean | intersect (int l1_x1, int l1_y1, int l1_x2, int l1_y2, int l2_x1, int l2_y1, int l2_x2, int l2_y2) |
checks whether the two given lines cross on screen. More... | |
boolean | in (int x, int y, int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) |
checks whether a given point (e.g. More... | |
Dimension | getPreferredSize () |
tell our preferred size to anybody who's interested. More... | |
Dimension | getMinimumSize () |
tell our minimum size to anybody how's interested. More... | |
Dimension | getSize () |
tell actual size to anyone how's interested. More... | |
int | transX (double x) |
translate world coordinates to image coordiates. More... | |
int | transY (double y) |
now translate world coordinates to image coordinates. More... | |
Public Attributes | |
RCWorld | World |
int | Width |
int | Height |
int | Scale |
int | Border |
|
Constructor.
Definition at line 48 of file RCViewPort.java. |
|
compute ...
Definition at line 191 of file RCViewPort.java. |
|
tell our minimum size to anybody how's interested.
Definition at line 286 of file RCViewPort.java. |
|
tell our preferred size to anybody who's interested.
Definition at line 276 of file RCViewPort.java. |
|
tell actual size to anyone how's interested.
Definition at line 296 of file RCViewPort.java. |
|
checks whether a given point (e.g. an RCObject (Player, Enemy, Ball) is being contained by the given 4-point-polygon
Definition at line 249 of file RCViewPort.java. |
|
checks whether the two given lines cross on screen.
Definition at line 222 of file RCViewPort.java. |
|
overload paint.
Definition at line 64 of file RCViewPort.java. |
|
translate world coordinates to image coordiates.
Definition at line 310 of file RCViewPort.java. |
|
now translate world coordinates to image coordinates.
Definition at line 332 of file RCViewPort.java. |
|
Definition at line 41 of file RCViewPort.java. |
|
Definition at line 39 of file RCViewPort.java. |
|
Definition at line 40 of file RCViewPort.java. |
|
Definition at line 38 of file RCViewPort.java. |
|
Definition at line 37 of file RCViewPort.java. |