Made propulsion optional
This commit is contained in:
		
							parent
							
								
									3e969a3939
								
							
						
					
					
						commit
						55cca93d67
					
				
							
								
								
									
										12
									
								
								Roboid.h
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Roboid.h
									
									
									
									
									
								
							@ -8,13 +8,13 @@ namespace RoboidControl {
 | 
			
		||||
 | 
			
		||||
/// @brief A Roboid is used to control autonomous robots
 | 
			
		||||
class Roboid {
 | 
			
		||||
 public:
 | 
			
		||||
public:
 | 
			
		||||
  /// @brief Default constructor for a Roboid
 | 
			
		||||
  Roboid();
 | 
			
		||||
  /// @brief Creates a Roboid with Perception and Propulsion abilities
 | 
			
		||||
  /// @param perception The Perception implementation to use for this Roboid
 | 
			
		||||
  /// @param propulsion The Propulsion implementation to use for this Roboid
 | 
			
		||||
  Roboid(Perception* perception, Propulsion* propulsion);
 | 
			
		||||
  Roboid(Perception *perception, Propulsion *propulsion = nullptr);
 | 
			
		||||
 | 
			
		||||
  /// @brief Update the state of the Roboid
 | 
			
		||||
  /// @param currentTimeMs The time in milliseconds when calling this
 | 
			
		||||
@ -22,11 +22,11 @@ class Roboid {
 | 
			
		||||
  void Update(float currentTimeMs);
 | 
			
		||||
 | 
			
		||||
  /// @brief The Perception module of this Roboid
 | 
			
		||||
  Perception* perception;
 | 
			
		||||
  Perception *perception;
 | 
			
		||||
  /// @brief The Propulsion module of this Roboid
 | 
			
		||||
  Propulsion* propulsion;
 | 
			
		||||
  Propulsion *propulsion;
 | 
			
		||||
};
 | 
			
		||||
}  // namespace RoboidControl
 | 
			
		||||
}  // namespace Passer
 | 
			
		||||
} // namespace RoboidControl
 | 
			
		||||
} // namespace Passer
 | 
			
		||||
 | 
			
		||||
using namespace Passer::RoboidControl;
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user