//Constructors public GroupChasingGraphMovement(AStarMovementEntity host, EntityManager.EntityType groupToChase) : base(host) { this.groupToChase = groupToChase; }
/*Turret*/ private static void CreateTurret() { //Creating turret Texture2D turretTexture = MainGame.Instance.Content.Load<Texture2D>(TURRET_TEXTURE_NAME); AStarMovementEntity turret = new AStarMovementEntity( EntityManager.EntityType.Turret, turretTexture, MainModel.Instance.Graph.AllNodes.First.Value); //Adding behaviour GroupChasingGraphMovement cowChasing = new GroupChasingGraphMovement(turret, EntityManager.EntityType.FlockMember); new TargetingBehaviour(turret); new ShootingBehaviour(turret, EntityManager.EntityType.FlockMember); }