public interface DebugInterface
Modifier and Type | Method | Description |
---|---|---|
DebugInterface |
debugBoxOut(Point p0,
Point p1,
Color color) |
Outputs a box specified as two 3D points in the game world.
|
DebugInterface |
debugCreateUnit(UnitType unitType,
Point2d p,
int playerId,
int count) |
Creates a unit at the given position.
|
DebugInterface |
debugCreateUnit(UnitType unitType,
PointI p,
int playerId,
int count) |
|
DebugInterface |
debugEndGame(boolean victory) |
Ends a game.
|
DebugInterface |
debugEnemyControl() |
Enables commands to be issued to enemy units.
|
DebugInterface |
debugFastBuild() |
Structures and units are built much faster.
|
DebugInterface |
debugGiveAllResources() |
Gives a bunch of minerals and gas.
|
DebugInterface |
debugGiveAllTech() |
All tech becomes available.
|
DebugInterface |
debugGiveAllUpgrades() |
All upgrades are available.
|
DebugInterface |
debugGodMode() |
Makes the units of a player indestructible.
|
DebugInterface |
debugIgnoreFood() |
Disables the food check.
|
DebugInterface |
debugIgnoreMineral() |
Ignores mineral costs.
|
DebugInterface |
debugIgnoreResourceCost() |
Disables resource checks.
|
DebugInterface |
debugKillUnit(Unit unit) |
Destroy a unit.
|
DebugInterface |
debugLineOut(Point p0,
Point p1,
Color color) |
Outputs a line between two 3D points in the game world.
|
DebugInterface |
debugMoveCamera(Point pos) |
Sets the position of the camera.
|
DebugInterface |
debugMoveCamera(PointI pos) |
|
DebugInterface |
debugNoCooldowns() |
Cooldowns become instant.
|
DebugInterface |
debugSetEnergy(float value,
Unit unit) |
Sets the energy level on a unit.
|
DebugInterface |
debugSetLife(float value,
Unit unit) |
Sets the life on a unit.
|
DebugInterface |
debugSetScore(float score) |
Sets the scripted "curriculum" score.
|
DebugInterface |
debugSetShields(float value,
Unit unit) |
Sets shields on a unit.
|
DebugInterface |
debugShowMap() |
Makes the entire map visible, i.e., removes the fog-of-war.
|
DebugInterface |
debugSphereOut(Point p,
float r,
Color color) |
Outputs a sphere specified as a 3D point in the game world and a radius.
|
DebugInterface |
debugTestApp(DebugTestProcess.Test appTest,
int delayMs) |
Cause the game to fail; useful to test library behavior.
|
DebugInterface |
debugTextOut(java.lang.String out,
Color color) |
Outputs text at the top, left of the screen.
|
DebugInterface |
debugTextOut(java.lang.String out,
Point2d ptVirtual2d,
Color color,
int size) |
Outputs text at any 2D point on the screen.
|
DebugInterface |
debugTextOut(java.lang.String out,
Point pt3d,
Color color,
int size) |
Outputs text at any 3D point in the game world.
|
boolean |
sendDebug() |
Dispatch all queued debug commands.
|
DebugInterface debugTextOut(java.lang.String out, Color color)
out
- The string of text to display.color
- (Optional) Color of the text.DebugInterface debugTextOut(java.lang.String out, Point2d ptVirtual2d, Color color, int size)
out
- The string of text to display.ptVirtual2d
- The screen position to draw text at.color
- (Optional) Color of the text.size
- (Optional) Pixel height of the text.DebugInterface debugTextOut(java.lang.String out, Point pt3d, Color color, int size)
out
- The string of text to display.pt3d
- The world position to draw text at.color
- (Optional) Color of the text.size
- (Optional) Pixel height of the text.DebugInterface debugLineOut(Point p0, Point p1, Color color)
p0
- The starting position of the line.p1
- The ending position of the line.color
- (Optional) Color of the line.DebugInterface debugBoxOut(Point p0, Point p1, Color color)
p0
- One corner of the box.p1
- The far corner of the box.color
- (Optional) Color of the lines.DebugInterface debugSphereOut(Point p, float r, Color color)
p
- Center of the sphere.r
- Radius of the sphere.color
- (Optional) Color of the lines.DebugInterface debugCreateUnit(UnitType unitType, PointI p, int playerId, int count)
DebugInterface debugCreateUnit(UnitType unitType, Point2d p, int playerId, int count)
unitType
- Type of unit to create.p
- Position to create the unit at.playerId
- Player the unit should belong to.count
- Number of units to create.DebugInterface debugKillUnit(Unit unit)
unit
- Unit to destroy.DebugInterface debugShowMap()
DebugInterface debugEnemyControl()
DebugInterface debugIgnoreFood()
DebugInterface debugIgnoreResourceCost()
DebugInterface debugGiveAllResources()
DebugInterface debugGodMode()
DebugInterface debugIgnoreMineral()
DebugInterface debugNoCooldowns()
DebugInterface debugGiveAllTech()
DebugInterface debugGiveAllUpgrades()
DebugInterface debugFastBuild()
DebugInterface debugSetScore(float score)
DebugInterface debugEndGame(boolean victory)
victory
- If true, this player is victorious. If false, this player surrenders.DebugInterface debugSetEnergy(float value, Unit unit)
value
- The new energy level.unit
- The unit.DebugInterface debugSetLife(float value, Unit unit)
value
- The new life.unit
- The unit.DebugInterface debugSetShields(float value, Unit unit)
value
- The new shields.unit
- The unit.DebugInterface debugMoveCamera(PointI pos)
debugMoveCamera(Point)
DebugInterface debugMoveCamera(Point pos)
pos
- The camera position in world space.DebugInterface debugTestApp(DebugTestProcess.Test appTest, int delayMs)
appTest
- State to put the game into.delayMs
- Time to elapse before invoking the game state.boolean sendDebug()
Copyright © 2017–2018 Ocraft Project. All rights reserved.