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 Critiqueable
public java.lang.String getTitle()
getTitle
in interface Critiqueable
public int getFans()
getFans
in interface Critiqueable
public void setFans(int newNumberOfFans)
setFans
in interface Critiqueable
newNumberOfFans
- the new number of fans value for the Websitepublic boolean inform(Universe.Outcomes outcome)
inform
in interface Critiqueable
outcome
- the outcome of the critique in which this Website was involvedpublic Critiqueable returnClone()
returnClone
in interface Critiqueable
public java.lang.String toString()
toString
in interface Critiqueable
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object