Created
March 8, 2013 08:50
-
-
Save haraldfianbakken/5115090 to your computer and use it in GitHub Desktop.
Buddy interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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