Layer logic done, dispatcher simplified
This commit is contained in:
@ -70,6 +70,11 @@ float DestructionPower::defaultDestructionPower(int i)
|
||||
//gets next highest valued abstraction layer down from current one (if first, get highest)
|
||||
int DestructionPower::getNextAbstractionLayer(coor newCoordinate, int currentAbstractionLayer)
|
||||
{
|
||||
if(++currentAbstractionLayer>=DESTRUCTION_COUNT)
|
||||
return -1;
|
||||
else
|
||||
return currentAbstractionLayer;
|
||||
|
||||
float currentPower = 1;
|
||||
int nextLayer=-1;
|
||||
float nextLayerPower=0;
|
||||
|
Reference in New Issue
Block a user