You can customize the build process by setting additional options for CMake.
The easiest way to do this is to use run `ccmake ..' instead of `cmake ..'
- to bring up the curses-based user interface of CMake. Select and option using the
+ to bring up the curses-based user interface of CMake. Select an option using the
arrow keys, change the selected option by pressing the Enter key, then
hit the `c' (repeatedly, if necessary) to apply your changes and bring
up new options resulting from your newly set ones. When you are done, press
#include "rect.hpp"
/**
- * An axis aligned triangle (ie. a triangle where 2 sides are parallel to the x-
+ * An axis-aligned triangle (ie. a triangle where 2 sides are parallel to the x-
* and y-axis.
*/
class AATriangle : public Rect
/** This class represents a rectangle.
* (Implementation Note) We're using upper left and lower right point instead of
* upper left and width/height here, because that makes the collision dectection
- * a little bit efficienter.
+ * a little bit more efficient.
*/
class Rect
{
return true;
}
- // leave these 2 public to safe the headaches of set/get functions for such
+ // leave these two public to save the headaches of set/get functions for such
// simple things :)
/// upper left edge
static const float SKID_TIME = .3f;
/** maximum walk velocity (pixel/s) */
static const float MAX_WALK_XM = 230;
-/** maximum run velcoity (pixel/s) */
+/** maximum run velocity (pixel/s) */
static const float MAX_RUN_XM = 320;
/** maximum horizontal climb velocity */
static const float MAX_CLIMB_XM = 48;
void set_velocity_x(float vx);
void set_velocity_y(float vy);
- /// Velocities invertion.
+ /// Velocities inversion.
void inverse_velocity_x();
void inverse_velocity_y();