Aura.Channel.World.Entities.Creature.Has C# (CSharp) Method

Has() public method

public Has ( CreatureStates state ) : bool
state CreatureStates
return bool
		public bool Has(CreatureStates state) { return ((this.State & state) != 0); }
		public bool Is(RaceStands stand) { return ((this.RaceData.Stand & stand) != 0); }

Usage Example

示例#1
0
文件: NPC.cs 项目: pie3467/aura
        public override bool CanTarget(Creature creature)
        {
            if (!base.CanTarget(creature))
                return false;

            // Named NPCs (normal dialog ones) can't be targeted.
            // Important because AIs target /pc/ and most NPCs are humans.
            if (creature.Has(CreatureStates.NamedNpc))
                return false;

            return true;
        }
All Usage Examples Of Aura.Channel.World.Entities.Creature::Has