public class College
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.badlogic.gdx.graphics.Color |
color
The color of the College
|
private int |
ID
The numeric representation of the college
DERWENT: 1
LANGWITH: 2
VANBURGH: 3
JAMES: 4
WENTWORTH: 5
HALIFAX: 6
ALCUIN: 7
GOODRICKE: 8
CONSTANTINE: 9
|
private com.badlogic.gdx.scenes.scene2d.ui.Image |
logo
The symbol of the college
|
private com.badlogic.gdx.graphics.Texture |
logoTexture
The texture encoding the symbol of the college
|
private java.lang.String |
Name
The name of the College.
|
Constructor and Description |
---|
College(java.lang.String college)
The constructor for the College class
This will assign a name and a logo to the College based on the ID provided
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Color |
getColor()
Returns the Color object for this college
|
int |
getID()
Returns the college's associated ID
|
com.badlogic.gdx.scenes.scene2d.ui.Image |
getLogo()
Returns an Image object with the texture of the college's logo mapped to it
|
com.badlogic.gdx.graphics.Texture |
getLogoTexture()
Returns the texture file encoding the college's logo
|
java.lang.String |
getName()
Returns the college's assigned name
|
private int ID
private java.lang.String Name
private com.badlogic.gdx.graphics.Color color
private com.badlogic.gdx.scenes.scene2d.ui.Image logo
private com.badlogic.gdx.graphics.Texture logoTexture
public College(java.lang.String college)
college
- The Name of the college.public java.lang.String getName()
public int getID()
public com.badlogic.gdx.graphics.Color getColor()
public com.badlogic.gdx.scenes.scene2d.ui.Image getLogo()
public com.badlogic.gdx.graphics.Texture getLogoTexture()