public class Streaming extends java.lang.Object implements Critiqueable
Constructor and Description |
---|
Streaming(Streaming other)
Copy constructor.
|
Streaming(java.lang.String titleIn,
int numberOfFansIn)
Standard 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 Streaming item.
|
int |
getMediaHype()
Getter for media hype of the Streaming item, which is always three less than
the internal media hype level.
|
java.lang.String |
getTitle()
Getter for name of the Streaming item.
|
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 Streaming item.
|
void |
setFans(int newNumberOfFans)
Setter for the number of fans of the Streaming item.
|
java.lang.String |
toString()
The "usual suspect" toString method.
|
public Streaming(java.lang.String titleIn, int numberOfFansIn)
titleIn
- desired title for this Streaming itemnumberOfFansIn
- starting number of fans for this Streaming itempublic Streaming(Streaming 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 Streaming itempublic boolean inform(Universe.Outcomes outcome)
inform
in interface Critiqueable
outcome
- the outcome of the critique in which this Streaming item 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