arcade.ads
Class GameAds

java.lang.Object
  extended by com.golden.gamedev.object.Sprite
      extended by vooga.engine.core.BetterSprite
          extended by arcade.ads.BasicAds
              extended by arcade.ads.GameAds

public abstract class GameAds
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.


Field Summary
 
Fields inherited from class arcade.ads.BasicAds
endTime, name, startTime, targetURL, xMax, xMin, yMax, yMin
 
Constructor Summary
GameAds(java.lang.String name, Game game)
           
GameAds(java.lang.String name, int xMin, int xMax, int yMin, int yMax)
           
 
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 arcade.ads.BasicAds
getDuration, getEndTime, getName, getStartTime, openBrowser, setEndTime, setName, setParameters, setStartTime
 
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
 

Constructor Detail

GameAds

public GameAds(java.lang.String name,
               Game game)

GameAds

public GameAds(java.lang.String name,
               int xMin,
               int xMax,
               int yMin,
               int yMax)
Method Detail

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