4 using System.Collections.Generic;
 
    7 public enum HeartTier : byte
 
   15 public delegate 
void HeartTierChangedHandler (HeartTier newTier, HeartTier prevTier);
 
   20 public class Heart : MonoBehaviour
 
   30     public static float Rate 
   35     public static float FireAntHR
 
   37         get { 
return _fireAntHR; }
 
   40     public static float PolarHR
 
   42         get { 
return _polarHR; }
 
   48     public static HeartTier 
Tier 
   58         get { 
return (
float)DateTime.Now.Subtract(_tierChangeTime).TotalSeconds; }
 
   69                 return (_rate - _health.RestingHeartRate) / (_health.TargetHeartRate - _health.RestingHeartRate);
 
   75     static float _fireAntHR;
 
   76     static float _polarHR;
 
   77     static HeartTier _tier;
 
   79     static DateTime _tierChangeTime;
 
   93             _tier = _health.GetHeartTier(heartRate);
 
   95             if (_tier == HeartTier.Extreme)
 
   98             if (prevTier != _tier)
 
  100                 _tierChangeTime = DateTime.Now;
 
  102                 if (TierChanged != null)
 
  108     public static void InjectFireAntRate(
float rate)
 
  113     public static void InjectPolarRate(
float rate)
 
  124     void OnConnectedToWorldServer ()
 
  126         _health = Game.LocalPlayerProfile.Health;
 
  129     void OnDisconnectedFromWorldServer ()
 
Heart class. Allows for heart rate queries and heart rate injection from devices. ...
 
DisconnectedFromWorldServerHandler DisconnectedFromWorldServer
Event fired when the game client is disconnected from the world server. 
 
static void InjectRate(float heartRate)
Injects a heart rate. 
 
static void Exclaim(string message, float duration=3.0f)
Displays the message for duration seconds, fading it in and out. 
 
ConnectedToWorldServerHandler ConnectedToWorldServer
Event fired when the game client successfully connects to the world server. 
 
static GameClient Instance
Gets the sole instance of the game client. 
 
A GUI Object that displays various messages in a faded bar accross the centre of the players screen...
 
static HeartTier Tier
Gets the current heart tier. 
 
static float Rate
Gets the current heart rate. 
 
static float TierTime
Gets the amount of time the heart has spent in the current tier. 
 
static float NormalizedRate
Gets the current heart rate divded by the target heart rate. 
 
static HeartTierChangedHandler TierChanged
Event fired when the heart rate tier changes.