Class hierarchy Compound list File list Compound Members

# World2D Class Reference

An infinite 2D World. More...

List of all members.

## Public Members

- World2D ()
    Construct a 2D World.

- ~World2D ()
    Destruct a 2D World.

- virtual long add (Object* O)
    this checks to make sure that any Object added to a World2D is derived from Object2D.

- long status () const
    Returns the status of the object.

## Detailed Description

An infinite 2D World.

Can contain a hierarchy of 2D objects, and has a view to reflect a certain part of it.

## Member Function Documentation

### World2D::World2D()

Construct a 2D World.

### World2D::~World2D()

Destruct a 2D World.

### virtual long World2D::add(Object* O)`[virtual]`

this checks to make sure that any Object added to a World2D is derived from Object2D.

Returns -1 if dynamic_cast fails.

### long World2D::status() const

Returns the status of the object.

A non-zero value indicates an error.

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

- 2D_Object2D.h