bool
a true or false value type
double
a type that means a number with up to 15-17 decimals.
how do you create/define a variable
(type) (name) = (value)
comment
can be anything, and is not compiled with the rest of the code. Used for documentation and TODOs generally
What is m_robotClass
RobotClass *m_robotClass;
a pointer
auto
a keyword that assigns whatever type the compiler deems correct
string
a type that means a string of characters that are held in memory together. generally for words, held by ""
what is a function/method
an executable block of code.
deconstructor
the function that deconstructs all the objects for a class
what is this?
/**
void RobotClass::RobotFunction(parameters and stuff)
{ buncha code;};
**/
a comment block
vector
a variable type that holds several values of a type in a series.
constructor
The function that initializes all the variables for a class and sets up the base of the class, and is called automatically when the class is created
what is a class
a class is a blueprint for creating objects, providing initial values for attributes, and functions. It also defines the shared aspects of objects created from it, such as state and behavior.
namespace
a way to access a library allowing us to not need to name the library every time we use something from the namespace
what is this?
RobotHeckYeah(RobotIdentifier activeRobotId);
RobotHeckYeah() = delete;
~RobotHeckYeah() = default;
deconstructor and constructor
what is a pointer
a type that allows one class to access the objects within another class.
new
header file
the file that creates the class and objects within the class. Usually doesn't include function definitions and doesn't initialize variables.
GetInstance()
a function that allows us to access singletons without creating a new version of the class each time
____ IsRobotArmThere( ____ isRobotarmdone)
{ buncha code;
return ____ ;}
a bool
singleton
a type allowing only one instance of an object or class to be created
what is an enum
a dataset of named variables that are assigned integer values
xml file
a different type of file used for defining PIDs and for autons, with pathing and zoning.
Void
a type for functions that means they do not return a value
tell me everything you know about this variable
Class RobotCheese : BigCheese...
private:
int NumberOfCheeses() override;
private
returns an int
is overriding the function from RobotCheese