public override void AddModel(IHandModel model) { // Check is Remote or not if (model.isRemote != this.IsRemote_) { return; } if (handModels == null) { handModels = new List <IHandModel>(); // 有Bug???? } handModels.Add(model); if (model.GetLeapHand() == null) { model.SetLeapHand(MostRecentHand); model.InitHand(); model.BeginHand(); model.UpdateHand(); } else { model.SetLeapHand(MostRecentHand); model.BeginHand(); } }
public HandProxy(HandPool parent, IHandModel handModel, Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handModel.BeginHand(); }
public override void AddModel(IHandModel model) { if (handModels == null) { handModels = new List<IHandModel>(); } handModels.Add(model); if (model.GetLeapHand() == null) { model.SetLeapHand(MostRecentHand); model.InitHand(); model.BeginHand(); model.UpdateHand(); } else { model.SetLeapHand(MostRecentHand); model.BeginHand(); } }
public HandProxy(HandPool parent, IHandModel handModel, Hand hand) : base(hand.Id) { this.parent = parent; this.handModel = handModel; // Check to see if the hand model has been initialized yet if (handModel.GetLeapHand() == null) { handModel.SetLeapHand(hand); handModel.InitHand(); } else { handModel.SetLeapHand(hand); } handModel.BeginHand(); }
public override void AddModel(IHandModel model) { if (handModels == null) { handModels = new List <IHandModel>(); } handModels.Add(model); if (model.GetLeapHand() == null) { model.SetLeapHand(MostRecentHand); model.InitHand(); model.BeginHand(); model.UpdateHand(); } else { model.SetLeapHand(MostRecentHand); model.BeginHand(); } }
/** Calls Updates in IHandModels that are part of this HandRepresentation */ public override void UpdateRepresentation(Hand hand, ModelType modelType) { handModel.SetLeapHand(hand); handModel.UpdateHand(); }