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