public int GetCount(Agent pAgent) { Debug.Check(this.GetNode() is DecoratorCount); DecoratorCount pDecoratorCountNode = (DecoratorCount)(this.GetNode()); return(pDecoratorCountNode != null?pDecoratorCountNode.GetCount(pAgent) : 0); }
public int GetCount(Agent pAgent) { DecoratorCount decoratorCount = (DecoratorCount)base.GetNode(); return((decoratorCount != null) ? decoratorCount.GetCount(pAgent) : 0); }
public int GetCount(Agent pAgent) { DecoratorCount node = (DecoratorCount)base.GetNode(); return((node == null) ? 0 : node.GetCount(pAgent)); }