|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.server.DynamicTerrainProcessor
megamek.server.FireProcessor
public class FireProcessor
| Field Summary | |
|---|---|
(package private) java.util.Vector<Report> |
vPhaseReport
|
| Fields inherited from class megamek.server.DynamicTerrainProcessor |
|---|
server |
| Constructor Summary | |
|---|---|
FireProcessor(Server server)
|
|
| Method Summary | |
|---|---|
void |
burnDownWoods(Coords coords)
|
(package private) void |
doEndPhaseChanges(java.util.Vector<Report> vPhaseReport)
Process terrain changes in the end phase |
Coords |
driftAddSmoke(Coords coords,
int windDir,
int windStr)
Override for the main driftAddSmoke to allow for 0 direction changes |
Coords |
driftAddSmoke(Coords src,
int windDir,
int windStr,
int directionChanges)
Smoke cannot climb more then 4 hexes if the next hex is more then 4 in elevation then The smoke will try to go right. |
boolean |
driftSmokeDissipate(SmokeCloud cloud,
int roll,
int windStr)
Diisipates Smoke clouds instead of indivdiual smoke hexes |
void |
driftSmokeReport(SmokeCloud cloud,
boolean dis)
|
void |
spreadFire(Coords coords,
TargetRoll roll,
int height)
Spreads the fire, and reports the spread, to the specified hex, if possible, if the hex isn't already on fire, and the fire roll is made. |
void |
spreadFire(int x,
int y,
int windDir,
int windStr)
Spreads the fire around the specified coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.Vector<Report> vPhaseReport
| Constructor Detail |
|---|
public FireProcessor(Server server)
| Method Detail |
|---|
void doEndPhaseChanges(java.util.Vector<Report> vPhaseReport)
DynamicTerrainProcessor
doEndPhaseChanges in class DynamicTerrainProcessorvPhaseReport - reports for the server to send outpublic void burnDownWoods(Coords coords)
public void spreadFire(int x,
int y,
int windDir,
int windStr)
public void spreadFire(Coords coords,
TargetRoll roll,
int height)
public Coords driftAddSmoke(Coords coords,
int windDir,
int windStr)
x - y - windDir - windStr -
public Coords driftAddSmoke(Coords src,
int windDir,
int windStr,
int directionChanges)
x - y - windDir - windStr - directionChanges - How many times the smoke has tried to change directions to get around an obsticle.
public boolean driftSmokeDissipate(SmokeCloud cloud,
int roll,
int windStr)
cloud - roll - windStr -
public void driftSmokeReport(SmokeCloud cloud,
boolean dis)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||