Show
Ignore:
Timestamp:
09/06/10 14:27:57 (21 months ago)
Author:
spf
Message:

added races description + factorization of symbols for race special instructions [See #34]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/phpcommon/functions.php

    r1774 r1788  
    16621662} 
    16631663 
     1664function getWaypointHTMLSymbols($wpformat) { 
     1665  $wpsymbols = ""; 
     1666  switch ($wpformat & (WP_CROSS_CLOCKWISE|WP_CROSS_ANTI_CLOCKWISE)) { 
     1667  case WP_CROSS_ANTI_CLOCKWISE: 
     1668    $wpsymbols .= "↺ "; 
     1669    break; 
     1670  case WP_CROSS_CLOCKWISE: 
     1671    $wpsymbols .= "↻ "; 
     1672    break; 
     1673  default: 
     1674  } 
     1675  if (($wpformat & WP_CROSS_ONCE) == WP_CROSS_ONCE) { 
     1676    $wpsymbols .= "⊅ "; 
     1677  }  
     1678   
     1679  switch ($wpformat & (WP_ICE_GATE_N|WP_ICE_GATE_S)) { 
     1680  case WP_ICE_GATE_S: 
     1681    $wpsymbols .= "⥴"; 
     1682    break; 
     1683  case WP_ICE_GATE_N: 
     1684    $wpsymbols .= "⥲"; 
     1685  default: 
     1686  } 
     1687  return trim($wpsymbols); 
     1688} 
     1689 
    16641690// For a finished race, to give the Palmares 
    16651691function getRaceRanking($idusers, $idraces) {