|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Unit.Role | |
---|---|
net.sf.freecol.client.gui | Contains the GUI classes. |
net.sf.freecol.client.gui.i18n | |
net.sf.freecol.client.gui.panel | Contains the panels and dialogs. |
net.sf.freecol.common.model | Contains the game model. |
Uses of Unit.Role in net.sf.freecol.client.gui |
---|
Methods in net.sf.freecol.client.gui with parameters of type Unit.Role | |
---|---|
javax.swing.ImageIcon |
ImageLibrary.getUnitImageIcon(UnitType unitType,
Unit.Role role)
Returns the ImageIcon that will represent a unit of the given type and role. |
javax.swing.ImageIcon |
ImageLibrary.getUnitImageIcon(UnitType unitType,
Unit.Role role,
boolean grayscale)
Returns the ImageIcon that will represent a unit of the given type and role. |
Uses of Unit.Role in net.sf.freecol.client.gui.i18n |
---|
Methods in net.sf.freecol.client.gui.i18n with parameters of type Unit.Role | |
---|---|
static java.lang.String |
Messages.getLabel(UnitType someType,
Unit.Role someRole)
Returns the name of a unit in a human readable format. |
Uses of Unit.Role in net.sf.freecol.client.gui.panel |
---|
Methods in net.sf.freecol.client.gui.panel with parameters of type Unit.Role | |
---|---|
javax.swing.JLabel |
ReportPanel.createUnitTypeLabel(UnitType unitType,
Unit.Role role,
int count)
|
Uses of Unit.Role in net.sf.freecol.common.model |
---|
Methods in net.sf.freecol.common.model that return Unit.Role | |
---|---|
Unit.Role |
Unit.getRole()
Gets the Role of this Unit . |
Unit.Role |
EquipmentType.getRole()
Get the Role value. |
Unit.Role |
AbstractUnit.getRole()
Get the Role value. |
static Unit.Role |
Unit.Role.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Unit.Role[] |
Unit.Role.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in net.sf.freecol.common.model with parameters of type Unit.Role | |
---|---|
void |
EquipmentType.setRole(Unit.Role newRole)
Set the Role value. |
void |
AbstractUnit.setRole(Unit.Role newRole)
Set the Role value. |
Constructors in net.sf.freecol.common.model with parameters of type Unit.Role | |
---|---|
AbstractUnit(java.lang.String id,
Unit.Role someRole,
int someNumber)
|
|
AbstractUnit(UnitType unitType,
Unit.Role someRole,
int someNumber)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |