public interface ArmorGridAPI
| Modifier and Type | Method and Description |
|---|---|
void |
buildComponentMap() |
void |
clearComponentMap()
Call this to prevent all weapons/engines on the ship from taking damage, ever.
|
int |
getAbove()
Number of cells above the center of the ship.
|
float |
getArmorFraction(int cellX,
int cellY)
0,0 is lower left corner of the sprite.
|
float |
getArmorRating() |
float |
getArmorValue(int cellX,
int cellY)
0,0 is lower left corner of the sprite.
|
int |
getBelow()
Number of cells below the center of the ship.
|
int[] |
getCellAtLocation(org.lwjgl.util.vector.Vector2f loc) |
float |
getCellSize()
Armor cell size, in pixels.
|
float[][] |
getGrid() |
int |
getLeftOf()
Number of cells left of the center of the ship.
|
org.lwjgl.util.vector.Vector2f |
getLocation(int cellX,
int cellY) |
float |
getMaxArmorInCell() |
int |
getRightOf()
Number of cells right of the center of the ship.
|
void |
setArmorValue(int cellX,
int cellY,
float value) |
float getArmorRating()
float getMaxArmorInCell()
float getArmorFraction(int cellX, int cellY)
float getArmorValue(int cellX, int cellY)
void setArmorValue(int cellX, int cellY, float value)
cellX - cellY - value - actual value, NOT fraction.float[][] getGrid()
float getCellSize()
int getAbove()
int getBelow()
int getRightOf()
int getLeftOf()
int[] getCellAtLocation(org.lwjgl.util.vector.Vector2f loc)
loc - absolute location in engine coordinates.org.lwjgl.util.vector.Vector2f getLocation(int cellX, int cellY)
void clearComponentMap()
void buildComponentMap()