SourceForge.net Logo

Flatland::ObjectProperties Struct Reference

#include <flatland.hpp>

List of all members.

Detailed Description

For physical properties, I don't see a need for accessor/mutator methods right now. In the future we can add proxies if need be. For example, we'd turn the struct into a class, then we'd make friction a FrictionProxy instead of a float, then we'd add a private member to store the actual float for friction. FrictionProxy would use operator overloading to hide validation behind the scenes. If the proxy code is tedious even using templates, then maybe we could add to the enums perl script to auto-generate code for us.

Definition at line 56 of file flatland.hpp.

Public Attributes

float density
float friction
float bounceFactor
float bounceVelocity
Mask collisionMask
Mask frictionMask
Callback callback

The documentation for this struct was generated from the following file:
Generated on Sat Jan 13 17:20:21 2007 for Flatland by doxygen 1.5.1