Roguelike
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
game::component::ShapeRectangular Class Reference

#include <shape_rectangular.h>

Inheritance diagram for game::component::ShapeRectangular:
Inheritance graph
[legend]
Collaboration diagram for game::component::ShapeRectangular:
Collaboration graph
[legend]

Public Member Functions

 ShapeRectangular (game::base::GameObject *owner, int size_x=1, int size_y=1, double stay_sizeclass=1.0, double pass_sizeclass=0.25, double enter_sizeclass=1.0e-5)
 
 ~ShapeRectangular ()
 
const ugdk::math::Integer2D & PlaceAt (const ugdk::math::Integer2D &destination)
 
const ugdk::math::Integer2D & Move (const std::list< ugdk::math::Integer2D > &mov)
 
const ugdk::math::Integer2D & Step (const ugdk::math::Integer2D &dir)
 
bool CheckForOob (const ugdk::math::Integer2D &destination) const
 
bool TryPlace (const ugdk::math::Integer2D &destination, game::base::GameObject *ignore=0) const
 
const ugdk::math::Integer2D TryStep (const ugdk::math::Integer2D &dir) const
 
void EvalBumpsAt (const ugdk::math::Integer2D &destination, game::base::GameObject *ignore=0) const
 
const ugdk::math::Integer2D & dimensions () const
 
- Public Member Functions inherited from game::component::Shape
 Shape (game::base::GameObject *owner, double stay_sizeclass=1.0, double pass_sizeclass=0.25, double enter_sizeclass=1.0e-5)
 
virtual ~Shape ()
 
void set_stay_sizeclass (double stay_sizeclass)
 
void set_pass_sizeclass (double pass_sizeclass)
 
void set_enter_sizeclass (double enter_sizeclass)
 
double stay_sizeclass () const
 
double pass_sizeclass () const
 
double enter_sizeclass () const
 
const std::set
< ugdk::math::Integer2D > & 
occupying_tiles () const
 
std::set< ugdk::math::Integer2D > & occupying_tiles ()
 
action::Aimaim ()
 
- Public Member Functions inherited from game::component::ComponentBase
 ComponentBase (game::base::GameObject *owner)
 
 ~ComponentBase ()
 

Additional Inherited Members

- Protected Attributes inherited from game::component::Shape
double stay_sizeclass_
 
double pass_sizeclass_
 
double enter_sizeclass_
 
std::set< ugdk::math::Integer2D > occupying_tiles_
 
action::Aimaim_
 
- Protected Attributes inherited from game::component::ComponentBase
game::base::GameObjectowner_
 

Constructor & Destructor Documentation

game::component::ShapeRectangular::ShapeRectangular ( game::base::GameObject owner,
int  size_x = 1,
int  size_y = 1,
double  stay_sizeclass = 1.0,
double  pass_sizeclass = 0.25,
double  enter_sizeclass = 1.0e-5 
)
game::component::ShapeRectangular::~ShapeRectangular ( )

Member Function Documentation

bool game::component::ShapeRectangular::CheckForOob ( const ugdk::math::Integer2D &  destination) const
const ugdk::math::Integer2D& game::component::ShapeRectangular::dimensions ( ) const
inline
void game::component::ShapeRectangular::EvalBumpsAt ( const ugdk::math::Integer2D &  destination,
game::base::GameObject ignore = 0 
) const
const Integer2D & game::component::ShapeRectangular::Move ( const std::list< ugdk::math::Integer2D > &  mov)
virtual
const Integer2D & game::component::ShapeRectangular::PlaceAt ( const ugdk::math::Integer2D &  destination)
virtual
const Integer2D & game::component::ShapeRectangular::Step ( const ugdk::math::Integer2D &  dir)
virtual
bool game::component::ShapeRectangular::TryPlace ( const ugdk::math::Integer2D &  destination,
game::base::GameObject ignore = 0 
) const
virtual
const Integer2D game::component::ShapeRectangular::TryStep ( const ugdk::math::Integer2D &  dir) const

The documentation for this class was generated from the following files: