public class Website extends java.lang.Object implements Critiqueable
| Constructor and Description |
|---|
Website(java.lang.String titleIn,
int numberOfFansIn)
Standard constructor.
|
Website(Website other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
The "usual suspect" equals method.
|
int |
getFans()
Getter for the number of fans of the Website.
|
int |
getMediaHype()
Getter for the media hype of the Website, which is based on the
first character of its title and the internal hype it has.
|
java.lang.String |
getTitle()
Getter for name of the Website.
|
boolean |
inform(Universe.Outcomes outcome)
This method is sent the "outcome" of a critique "battle" that takes place in
the game being written by our theoretical other GUI team.
|
Critiqueable |
returnClone()
Method to create an independent copy of the Website.
|
void |
setFans(int newNumberOfFans)
Setter for the number of fans of the Website.
|
java.lang.String |
toString()
The "usual suspect" toString method.
|
public Website(java.lang.String titleIn,
int numberOfFansIn)
titleIn - desired title for this WebsitenumberOfFansIn - starting number of fans for this Websitepublic Website(Website other)
other - reference to the existing object which is the basis of the new onepublic int getMediaHype()
getMediaHype in interface Critiqueablepublic java.lang.String getTitle()
getTitle in interface Critiqueablepublic int getFans()
getFans in interface Critiqueablepublic void setFans(int newNumberOfFans)
setFans in interface CritiqueablenewNumberOfFans - the new number of fans value for the Websitepublic boolean inform(Universe.Outcomes outcome)
inform in interface Critiqueableoutcome - the outcome of the critique in which this Website was involvedpublic Critiqueable returnClone()
returnClone in interface Critiqueablepublic java.lang.String toString()
toString in interface CritiqueabletoString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object