public class NetPort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Direction |
direction |
(package private) NetHexLocation |
netHexLocation |
(package private) int |
ratio |
(package private) ResourceType |
resource |
Constructor and Description |
---|
NetPort() |
Modifier and Type | Method and Description |
---|---|
Direction |
getDirection() |
NetHexLocation |
getNetHexLocation() |
int |
getRatio() |
ResourceType |
getResource() |
void |
setDirection(Direction direction) |
void |
setNetHexLocation(NetHexLocation netHexLocation) |
void |
setRatio(int ratio) |
void |
setResource(ResourceType resource) |
java.lang.String |
toString() |
int ratio
ResourceType resource
NetHexLocation netHexLocation
Direction direction
public int getRatio()
public void setRatio(int ratio)
ratio
- the ratio to setpublic ResourceType getResource()
public void setResource(ResourceType resource)
resource
- the resource to setpublic NetHexLocation getNetHexLocation()
public void setNetHexLocation(NetHexLocation netHexLocation)
netHexLocation
- the netHexLocation to setpublic Direction getDirection()
public void setDirection(Direction direction)
direction
- the direction to setpublic java.lang.String toString()
toString
in class java.lang.Object