public Enemy(Vector2 position) : base(position) { IsAlive = true; followBear = null; Scale = 1; mScale = new Vector2(Scale, Scale); CurrentState = State.Aimless; mFollowPlayerAI = new FollowPlayerAI(this, followBear); mAfraidAI = new AfraidAI(this); mPlantingAI = new PlantingAI(this); mEvilAI = new EvilAI(this); SeedPouch pouch = new SeedPouch(1); mGetSeedAI = new GetSeedAI(this, pouch); mPlantSeedAI = new PlantSeedAI(this, pouch); bCurrGetSeed = true; mCommands = new List<AIComponent>(); mNumCommands = 0; mNextCommandIndex = 0; mCurrCommand = null; AddCommand(mGetSeedAI); AddCommand(mPlantSeedAI); Pouch = new SeedPouch(2); bListening = false; }
public PlantSeedAI(Entity planter, SeedPouch pouch) : base() { mPlanter = planter; mSeedPouch = pouch; path = null; bHasPath = false; pathPos = 0; }
//private Texture2D mTexture; public GetSeedAI(Entity planter, SeedPouch pouch) : base() { mPlanter = planter; mSeedPouch = pouch; bHasSeed = false; bHasPath = false; pathPos = 0; //LoadContent(); }