19 #ifndef OPENXCOM_VEHICLE_H
20 #define OPENXCOM_VEHICLE_H
23 #include <yaml-cpp/yaml.h>
46 void load(
const YAML::Node& node);
48 YAML::Node
save()
const;
Represents a vehicle (tanks etc.) kept in a craft.
Definition: Vehicle.h:35
int getAmmo() const
Gets the vehicle's ammo.
Definition: Vehicle.cpp:78
Vehicle(RuleItem *rules, int ammo, int size)
Creates a vehicle of the specified type.
Definition: Vehicle.cpp:31
YAML::Node save() const
Saves the vehicle to YAML.
Definition: Vehicle.cpp:56
void setAmmo(int ammo)
Sets the vehicle's ammo.
Definition: Vehicle.cpp:91
void load(const YAML::Node &node)
Loads the vehicle from YAML.
Definition: Vehicle.cpp:46
Represents a specific type of item.
Definition: RuleItem.h:41
RuleItem * getRules() const
Gets the vehicle's ruleset.
Definition: Vehicle.cpp:69
~Vehicle()
Cleans up the vehicle.
Definition: Vehicle.cpp:38
int getSize() const
Gets the vehicle's size.
Definition: Vehicle.cpp:104