Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## examples
Class StdScoring

    java.lang.Object
      jgame.JGObject
          examples.StdScoring

    public class StdScoring

extends JGObject

A class for displaying an animated piece of text. The text is displayed in the supplied font and can be made to colour-cycle.

Field Summary

Fields inherited from class jgame.JGObject
`colid, eng, expire_never, expire_off_pf, expire_off_view, expiry, gamespeed, is_suspended, pfheight, pfwidth, pfwrapx, pfwrapy, resume_in_view, suspend_off_view, suspend_off_view_expire_off_pf, tileheight, tilewidth, viewheight, viewwidth, viewxofs, viewyofs, x, xdir, xspeed, y, ydir, yspeed`

Constructor Summary
`StdScoring(java.lang.String name, double x, double y, double xspeed, double yspeed, int expiry, java.lang.String message, JGFont font, JGColor[] colors, int cyclespeed)` Create animated piece of text.

Method Summary
`void` | `paint()` Paints the message.

Methods inherited from class jgame.JGObject
`and, checkBGCollision, checkBGCollision, checkCollision, clearAnim, clearBBox, clearTileBBox, dbgPrint, destroy, frameFinished, getAnimId, getBBox, getBBox, getCenterTile, getCenterTiles, getGraphic, getImageBBox, getImageBBoxConst, getImageName, getLastX, getLastY, getName, getTileBBox, getTileBBox, getTiles, getTopLeftTile, hit_bg, hit_bg, hit_bg, hit, isAligned, isAlive, isBottomAligned, isInView, isLeftAligned, isOnPF, isOnScreen, isRightAligned, isSuspended, isTopAligned, isXAligned, isXAligned, isYAligned, isYAligned, moduloPos, move, remove, removeDone, resetAnim, resetAnim, resume, setAnim, setAnimPingpong, setAnimSpeed, setBBox, setDir, setDirSpeed, setDirSpeed, setEngine, setGraphic, setImage, setPos, setResumeMode, setSpeed, setSpeed, setSpeedAbs, setTileBBox, snapBBoxToGrid, snapToGrid, snapToGrid, startAnim, stopAnim, suspend, updateAnimation, updateEngineSettings`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StdScoring

    public StdScoring(java.lang.String name,
                      double x,
                      double y,
                      double xspeed,
                      double yspeed,
                      int expiry,
                      java.lang.String message,
                      JGFont font,
                      JGColor[] colors,
                      int cyclespeed)

  Create animated piece of text.

  Parameters:
    `name` - name prefix (unique id is always added)
    `x` - center of text (text is centered)
    `y` - top of text
    `expiry` - the expiry value: # ticks, -1=never, or -2=die offscreen
    `colors` - colors through which to cycle
    `cyclespeed` - number of ticks before next colour in the colour cycle

Method Detail

### paint

    public void paint()

  Paints the message.

  Overrides:
    `paint` in class `JGObject`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD