arcade.ads
Class ImageAds

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.ImageAds
Direct Known Subclasses:
DukeAds

public abstract class ImageAds
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
protected  java.awt.Image img
           
 
Fields inherited from class arcade.ads.BasicAds
endTime, name, startTime, targetURL
 
Constructor Summary
ImageAds()
           
ImageAds(java.lang.String name, java.awt.Image img)
           
ImageAds(java.lang.String name, java.awt.Image img, int xMin, int xMax, int yMin, int yMax, java.lang.String targetURL)
           
 
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
 
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
 

Field Detail

img

protected java.awt.Image img
Constructor Detail

ImageAds

public ImageAds()

ImageAds

public ImageAds(java.lang.String name,
                java.awt.Image img)

ImageAds

public ImageAds(java.lang.String name,
                java.awt.Image img,
                int xMin,
                int xMax,
                int yMin,
                int yMax,
                java.lang.String targetURL)
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

isActive

public abstract boolean isActive()
Description copied from class: BasicAds
check if ad is active

Specified by:
isActive in class BasicAds