public State(string name) : base(ResourceType, ResourceTag) { this.mStateMachine = null; this.mName = name; if (name == null) { this.mNameHash = 0; this.bNameIsHash = true; } else if (!name.StartsWith("0x") || !uint.TryParse(name.Substring(2), System.Globalization.NumberStyles.HexNumber, null, out this.mNameHash)) { this.mNameHash = FNVHash.HashString32(name); this.bNameIsHash = false; } else { this.bNameIsHash = true; } this.mFlags = JazzState.Flags.None; this.mDecisionGraph = null; this.mTransitions = new List <State>(); this.mAwarenessOverlayLevel = JazzChunk.AwarenessLevel.Unset; }
public void SetFlags(JazzState.Flags flags, bool value) { if (value) { this.mFlags |= flags; } else { this.mFlags &= ~flags; } }
public bool GetFlags(JazzState.Flags flags) { return((this.mFlags & flags) != JazzState.Flags.None); }