Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: Box Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Protected Attributes

Box Class Reference

A 2-d bounding box. More...

#include <Box.h>

List of all members.

Public Member Functions

 Box (Position init_corner, int init_horizontal, int init_vertical)
 Create a box with an upper-left corner, horiz and vert sizes.
 Box ()
 Create a box with (0,0) for the corner, and 0 for horiz and vert.
Position getCorner ()
void setCorner (Position new_corner)
int getHorizontal ()
void setHorizontal (int new_horizontal)
int getVertical ()
void setVertical (int new_vertical)

Protected Attributes

Position corner
 Upper left corner of box.
int horizontal
 Horizontal dimension.
int vertical
 Vertical dimension.

Detailed Description

A 2-d bounding box.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends