arcade.store.account
Class PremiumShopAccount

java.lang.Object
  extended by arcade.store.account.UserShopAccount
      extended by arcade.store.account.PremiumShopAccount

public class PremiumShopAccount
extends UserShopAccount


Constructor Summary
PremiumShopAccount(java.lang.String user, java.lang.String id)
           
 
Method Summary
 void commentOnGamePage(GamePage page, java.lang.String comment)
          Premium user should have additional perks
 double getCredits(java.lang.String creditname)
           
 boolean hasGame(GamePage game)
           
 void purchaseGame(GamePage page)
          Tthis method overrides how a game is purchased
 void transactCredits(double change)
          This method processes an amount change to (assumed) game credits
 void transactCredits(java.lang.String creditname, double change)
          This method processes an amount of change to the credit
 void transferInformation(PremiumShopAccount newAccount)
          Give this account's information to another.
 
Methods inherited from class arcade.store.account.UserShopAccount
getAccountID, getUserName, resetUserID, resetUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PremiumShopAccount

public PremiumShopAccount(java.lang.String user,
                          java.lang.String id)
Method Detail

commentOnGamePage

public void commentOnGamePage(GamePage page,
                              java.lang.String comment)
Premium user should have additional perks

Parameters:
page -
comment -

purchaseGame

public void purchaseGame(GamePage page)
Description copied from class: UserShopAccount
Tthis method overrides how a game is purchased

Specified by:
purchaseGame in class UserShopAccount

transactCredits

public void transactCredits(double change)
This method processes an amount change to (assumed) game credits

Parameters:
change -

transactCredits

public void transactCredits(java.lang.String creditname,
                            double change)
This method processes an amount of change to the credit

Specified by:
transactCredits in class UserShopAccount
Parameters:
creditname -
change -

getCredits

public double getCredits(java.lang.String creditname)

hasGame

public boolean hasGame(GamePage game)

transferInformation

public void transferInformation(PremiumShopAccount newAccount)
Give this account's information to another. Adds current information the new account

Specified by:
transferInformation in class UserShopAccount