|
CPP03 1.0
|
Header file for the ClapTrap class. [詳解]


クラス | |
| class | ClapTrap |
| Represents a basic robot character. [詳解] | |
Header file for the ClapTrap class.
This file declares the base class ClapTrap, representing a basic robot. Compared to EX00, significant improvements include:
protected access specifier for member variables, allowing derived classes direct access.virtual, crucial for proper cleanup in inheritance hierarchies.attack() function as virtual, enabling polymorphism and allowing derived classes to override its behavior.getName() getter, facilitating access to the name from derived classes. ClapTrap.hpp に定義があります。