public interface ArmorGridAPI
Modifier and Type | Method and Description |
---|---|
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(Vector2f loc) |
float |
getCellSize()
Armor cell size, in pixels.
|
float[][] |
getGrid() |
int |
getLeftOf()
Number of cells left of the center of the ship.
|
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(Vector2f loc)
loc
- absolute location in engine coordinates.Vector2f getLocation(int cellX, int cellY)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.