rl.common.game.elements
Interface PaintingCapableElement

All Known Implementing Classes:
InfantrySquad, Vehicle

public interface PaintingCapableElement

This interface is implemented by elements that can paint other elements with painting lasers


Method Summary
 void applyPaintingSummary(GameElementPaintingSummary geps)
          This routine will synch the painting summary information from the element on the server to the one on the client.
 boolean canPaint(int turn)
          Returns whether this unit can make a painting attempt on a particular turn
 int getMaximumPaintingRange()
          Returns the maximum range at which this element can paint a target
 GameElementPaintingSummary getPaintingSummary(int turn)
          returns a new GameElementPaintingSummary appropriate to the object implementing this interface
 boolean hasPainted(int turn)
          Returns whether this unit made a painting attempt on a particular turn
 void setMadePaintingAttempt(int turn)
          Sets that this unit has made a painting attempt on this turn
 

Method Detail

canPaint

boolean canPaint(int turn)
Returns whether this unit can make a painting attempt on a particular turn

Parameters:
turn -
Returns:
whether this unit can paint on the turn supplied

hasPainted

boolean hasPainted(int turn)
Returns whether this unit made a painting attempt on a particular turn

Parameters:
turn -
Returns:
whether this unit has painted on the turn supplied

setMadePaintingAttempt

void setMadePaintingAttempt(int turn)
Sets that this unit has made a painting attempt on this turn

Parameters:
turn -

getMaximumPaintingRange

int getMaximumPaintingRange()
Returns the maximum range at which this element can paint a target

Returns:
the maximum range that this unit can perform painting at

getPaintingSummary

GameElementPaintingSummary getPaintingSummary(int turn)
returns a new GameElementPaintingSummary appropriate to the object implementing this interface

Returns:
the painting summary for the element on the turn supplied

applyPaintingSummary

void applyPaintingSummary(GameElementPaintingSummary geps)
This routine will synch the painting summary information from the element on the server to the one on the client.