Commits

Anonymous committed 051ee5a

Added constructor.

Comments (0)

Files changed (1)

src/ai_core/AIComponent.h

 	bool playerHasBall;
 	bool aiHasBall;
 	void ChangeState(string state);
-	void Seek(vector<double> location,int a_id/*id for whether itsz ball location or other*/);
+	void Seek(vector<double> location,int a_id/*id for whether its ball location or other*/);
 	void Block(vector<double> playerLocation, vector<double> ballLocation);
 	void Throw();
+	AIBehavior();
 	virtual ~AIBehavior(); //destructor
 	vector <AIBehavior*> ;
 	
 	void Move(vector<double> targetLocation);
 };
 
+AIBehavior::AIBehavior()
+{
+	aiHasBall = false;
+	playerHasBall = false;
+}
+
 void AIBehavior::ChangeState(string state){
 	//add switch statement to call any function needed based on the string input
 	//this function should be called in the main loop