Skip to content

Instantly share code, notes, and snippets.

@haraldfianbakken
Created March 8, 2013 08:50
Show Gist options
  • Save haraldfianbakken/5115090 to your computer and use it in GitHub Desktop.
Save haraldfianbakken/5115090 to your computer and use it in GitHub Desktop.
Buddy interface
namespace ibuddylib {
public enum TorsoYaw { Middle, Left, Right };
public enum WingPosition { Low, High };
public enum HeadColor { Off, White, Cyan, Purple, Blue, Yellow, Green, Red };
public enum HeartLight { Off, On };
/// <summary>
/// The interface that both physical and virtual i-Buddies respond to
/// </summary>
public interface IBuddy {
WingPosition WingPosition { get; set; }
HeadColor HeadColor { get; set; }
HeartLight HeartLight { get; set; }
TorsoYaw TorsoYaw { get; set; }
void BeginUpdate();
void EndUpdate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment