diff --git a/lib/Default/SmrPlayer.class.inc b/lib/Default/SmrPlayer.class.inc
index 4b39e4f31..11c7b466e 100644
--- a/lib/Default/SmrPlayer.class.inc
+++ b/lib/Default/SmrPlayer.class.inc
@@ -1637,6 +1637,23 @@ class SmrPlayer extends AbstractSmrPlayer {
return 'HIGH';
}
+ /**
+ * Returns the CSS class color to use when displaying the player's turns
+ */
+ public function getTurnsColor() {
+ switch($this->getTurnsLevel()) {
+ case 'NONE':
+ case 'LOW':
+ return 'red';
+ break;
+ case 'MEDIUM':
+ return 'yellow';
+ break;
+ default:
+ return 'green';
+ }
+ }
+
public function update() {
$this->save();
}
diff --git a/templates/Default/engine/Default/includes/RightPanelPlayer.inc b/templates/Default/engine/Default/includes/RightPanelPlayer.inc
index e6c14b896..7797ef9ef 100644
--- a/templates/Default/engine/Default/includes/RightPanelPlayer.inc
+++ b/templates/Default/engine/Default/includes/RightPanelPlayer.inc
@@ -10,19 +10,7 @@ if(isset($GameID)) { ?>
Race : getColouredRaceName($ThisPlayer->getRaceID()); ?>
Turns :
- getTurnsColor(); ?>">getTurns() .'/'.$ThisPlayer->getMaxTurns();
?>
diff --git a/templates/Freon22/engine/Default/skeleton.php b/templates/Freon22/engine/Default/skeleton.php
index c807296fd..3d00110dd 100644
--- a/templates/Freon22/engine/Default/skeleton.php
+++ b/templates/Freon22/engine/Default/skeleton.php
@@ -30,19 +30,7 @@
Race: getColouredRaceName($ThisPlayer->getRaceID()); ?>
Turns :
- getTurnsColor(); ?>">getTurns() .'/'.$ThisPlayer->getMaxTurns();
?>