public BaseGesture(GestureController gestureController, double timeOffset, DB.Gesture gesture) : base(gesture) { logger.AddLogAppender <ConsoleAppender>(); this.gestureController = gestureController; this.timeOffset = timeOffset; }
public void AddGesture(DB.Gesture gesture, double timeOffset) { BaseGesture newGesture = null; switch (gesture.GestureType) { case Gestures.ExtendedHand: newGesture = new ExtendedHand(gesture, this, timeOffset); break; case Gestures.Fist: newGesture = new Fist(gesture, this, timeOffset); break; } gestures.Add(newGesture); }
public ExtendedHand(DB.Gesture gesture, GestureController gestureController, double timeOffset) : base(gestureController, timeOffset, gesture) { }
public Fist(DB.Gesture gesture, GestureController gestureController, double timeOffset) : base(gestureController, timeOffset, gesture) { }