Definition at line 6 of file ArmorGridAPI.java.
◆ buildComponentMap()
| void com.fs.starfarer.api.combat.ArmorGridAPI.buildComponentMap |
( |
| ) |
|
◆ clearComponentMap()
| void com.fs.starfarer.api.combat.ArmorGridAPI.clearComponentMap |
( |
| ) |
|
Call this to prevent all weapons/engines on the ship from taking damage, ever.
◆ getAbove()
| int com.fs.starfarer.api.combat.ArmorGridAPI.getAbove |
( |
| ) |
|
◆ getArmorFraction()
| float com.fs.starfarer.api.combat.ArmorGridAPI.getArmorFraction |
( |
int | cellX, |
|
|
int | cellY ) |
0,0 is lower left corner of the sprite.
- Returns
- Armor value normalized to (0, 1).
◆ getArmorRating()
| float com.fs.starfarer.api.combat.ArmorGridAPI.getArmorRating |
( |
| ) |
|
- Returns
- Armor value that the player sees in the game, on tooltips and such.
◆ getArmorValue()
| float com.fs.starfarer.api.combat.ArmorGridAPI.getArmorValue |
( |
int | cellX, |
|
|
int | cellY ) |
0,0 is lower left corner of the sprite.
- Returns
- Actual non-normalized armor value in cell.
◆ getBelow()
| int com.fs.starfarer.api.combat.ArmorGridAPI.getBelow |
( |
| ) |
|
◆ getCellAtLocation()
| int[] com.fs.starfarer.api.combat.ArmorGridAPI.getCellAtLocation |
( |
Vector2f | loc | ) |
|
- Parameters
-
| loc | absolute location in engine coordinates. |
- Returns
- null if loc is off the grid, array with {int cellX, int cellY} otherwise.
◆ getCellSize()
| float com.fs.starfarer.api.combat.ArmorGridAPI.getCellSize |
( |
| ) |
|
Armor cell size, in pixels.
◆ getGrid()
| float[][] com.fs.starfarer.api.combat.ArmorGridAPI.getGrid |
( |
| ) |
|
◆ getLeftOf()
| int com.fs.starfarer.api.combat.ArmorGridAPI.getLeftOf |
( |
| ) |
|
◆ getLocation()
| Vector2f com.fs.starfarer.api.combat.ArmorGridAPI.getLocation |
( |
int | cellX, |
|
|
int | cellY ) |
◆ getMaxArmorInCell()
| float com.fs.starfarer.api.combat.ArmorGridAPI.getMaxArmorInCell |
( |
| ) |
|
- Returns
- Actual per-cell maximum armor value. ~1/15th of the listed armor rating, due to how damage is distributed between cells.
◆ getRightOf()
| int com.fs.starfarer.api.combat.ArmorGridAPI.getRightOf |
( |
| ) |
|
◆ setArmorValue()
| void com.fs.starfarer.api.combat.ArmorGridAPI.setArmorValue |
( |
int | cellX, |
|
|
int | cellY, |
|
|
float | value ) |
- Parameters
-
| cellX | |
| cellY | |
| value | actual value, NOT fraction. |
The documentation for this interface was generated from the following file: