arcade.ads
Class VideoAds
java.lang.Object
com.golden.gamedev.object.Sprite
vooga.engine.core.BetterSprite
arcade.ads.BasicAds
arcade.ads.VideoAds
public abstract class VideoAds
- extends BasicAds
This is simple class will provide general functionality for all ads, such as
name, start and end date, maximum vies, onClick, onMouseOver, update, and
render methods. We feel like these are the very basic methods and ideas that
every single ad is going to need.
Constructor Summary |
VideoAds(java.lang.String name,
java.awt.Image img,
int xMin,
int xMax,
int yMin,
int yMax)
|
VideoAds(java.lang.String name,
Video video)
|
Method Summary |
abstract boolean |
isActive()
check if ad is active |
void |
onClick()
action when user clicks on the ads |
void |
onMouseOver()
action when user moves the mouse on the ads |
void |
render()
|
void |
update()
|
Methods inherited from class vooga.engine.core.BetterSprite |
addAnimatedImages, addHorizontalSpeed, addImage, addSprite, addVerticalSpeed, firstRun, forceX, forceY, getCurrentSprite, getDistance, getDoubleStat, getHeight, getHorizontalSpeed, getImage, getIntStat, getStat, getTimeInExistence, getVerticalSpeed, getWidth, getX, getY, isOnScreen, move, moveTo, moveX, moveY, render, setActive, setAsRenderedSprite, setBackground, setDoubleStat, setHorizontalSpeed, setImage, setImages, setIntStat, setLayer, setLocation, setMovement, setSpeed, setStat, setVerticalSpeed, setX, setY, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VideoAds
public VideoAds(java.lang.String name,
Video video)
VideoAds
public VideoAds(java.lang.String name,
java.awt.Image img,
int xMin,
int xMax,
int yMin,
int yMax)
onClick
public void onClick()
- Description copied from class:
BasicAds
- action when user clicks on the ads
- Specified by:
onClick
in class BasicAds
onMouseOver
public void onMouseOver()
- Description copied from class:
BasicAds
- action when user moves the mouse on the ads
- Specified by:
onMouseOver
in class BasicAds
update
public void update()
render
public void render()
isActive
public abstract boolean isActive()
- Description copied from class:
BasicAds
- check if ad is active
- Specified by:
isActive
in class BasicAds