示例#1
0
        public ChopWood(GOAPAgent agent, Game game, Movement movement) : base(agent, game, movement)
        {
            Preconditions.Add(Effect.HAS_THING, TypeOfThing.Axe);
            Effects.Add(Effect.HAS_THING, TypeOfThing.Wood);

            _inventory = agent.GetComponent <Inventory>();
        }
示例#2
0
文件: Drop.cs 项目: alexvmvm/village
        public Drop(GOAPAgent agent, Game game) : base(agent, game)
        {
            _inventory = agent.GetComponent <Inventory>();

            Effects.Add(Effect.HAS_THING, TypeOfThing.None);
        }
示例#3
0
        public PickMushroom(GOAPAgent agent, Game game, Movement movement) : base(agent, game, movement)
        {
            Effects.Add(Effect.HAS_THING, TypeOfThing.Mushroom);

            _inventory = agent.GetComponent <Inventory>();
        }
示例#4
0
        public GetClayFromGround(GOAPAgent agent, Game game, Movement movement) : base(agent, game, movement)
        {
            Effects.Add(Effect.HAS_THING, TypeOfThing.Clay);

            _inventory = agent.GetComponent <Inventory>();
        }