public renderState AddActiveLocation(locationInfo location) { return(new renderState(Font, Color, BlockIndent, location.Concat(ActiveLocations), Mnemonic)); }
public renderState AddActiveLocation(locationInfo location) { return new renderState(Font, Color, BlockIndent, location.Concat(ActiveLocations), Mnemonic); }
public void showTargets(int attackType, locationInfo currentLoc) { if (attackType == 1) { if (currentLoc.moveUp != null) { currentLoc.moveUp.GetComponent<locationInfo>().damageHere(); } if (currentLoc.moveDown != null) { currentLoc.moveDown.GetComponent<locationInfo>().damageHere(); } if (currentLoc.moveLeft != null) { currentLoc.moveLeft.GetComponent<locationInfo>().damageHere(); } if (currentLoc.moveRight != null) { currentLoc.moveRight.GetComponent<locationInfo>().damageHere(); } } else if (attackType == 2) { if (currentLoc.moveUp != null) { if (currentLoc.moveUp.GetComponent<locationInfo>().moveLeft != null) { currentLoc.moveUp.GetComponent<locationInfo>().moveLeft.GetComponent<locationInfo>().damageHere(); } if (currentLoc.moveUp.GetComponent<locationInfo>().moveRight != null) { currentLoc.moveUp.GetComponent<locationInfo>().moveRight.GetComponent<locationInfo>().damageHere(); } } if (currentLoc.moveDown != null) { if (currentLoc.moveDown.GetComponent<locationInfo>().moveLeft != null) { currentLoc.moveDown.GetComponent<locationInfo>().moveLeft.GetComponent<locationInfo>().damageHere(); } if (currentLoc.moveDown.GetComponent<locationInfo>().moveRight != null) { currentLoc.moveDown.GetComponent<locationInfo>().moveRight.GetComponent<locationInfo>().damageHere(); } } if (currentLoc.moveLeft != null) { if (currentLoc.moveLeft.GetComponent<locationInfo>().moveLeft != null) { currentLoc.moveLeft.GetComponent<locationInfo>().moveLeft.GetComponent<locationInfo>().damageHere(); } } if (currentLoc.moveRight != null) { if (currentLoc.moveRight.GetComponent<locationInfo>().moveRight != null) { currentLoc.moveRight.GetComponent<locationInfo>().moveRight.GetComponent<locationInfo>().damageHere(); } } } }