|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--nankin.zheng.gatem.view.RoleView
|
+--nankin.zheng.gatem.view.BackgroundView
RoleView object of game background. It accepts additional viewport information and passes it to DisplayCache.
| Field Summary |
| Fields inherited from class nankin.zheng.gatem.view.RoleView |
aImages, displayCache, env, roleName |
| Constructor Summary | |
BackgroundView(Env environ,
DisplayCache dc,
java.lang.String rname,
AnchoredImage[] aimgs)
Constructor. |
|
| Method Summary | |
void |
notifyViewport(Position vp)
Pass viewport position information to DisplayCache. |
| Methods inherited from class nankin.zheng.gatem.view.RoleView |
draw, getCreatedInstanceCount, getRoleName, testInitialization |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BackgroundView(Env environ,
DisplayCache dc,
java.lang.String rname,
AnchoredImage[] aimgs)
throws GameException
environ - environment.dc - DisplayCache, which will be used while drawing.rname - role name.aimgs - anchored image array.
java.lang.NullPointerException - if any parameter is null.
GameException - if any error occured.| Method Detail |
public void notifyViewport(Position vp)
throws GameException
vp - position of viewport (logical coordonate)
java.lang.NullPointerException - if vp is null.
GameException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||