Class hierarchy Compound list File list Compound Members

# Layer2D Class Reference

Layer2D is an abstract type from which the layers of a Map2D are derived. More...

List of all members.

## Public Members

- Layer2D (const String& name, int priority=0)
    Constructor.

- int getPriority () const
    Retrieve the priority of the layer.

- Map2D* getOwner () const
    Retrieve the map that owns the layer.

- virtual long advance (float Fraction) = 0
    advance the layer by Fraction.

- LayerType getLayerType () const
    Returns the LayerType of this layer.

- TileLayer* getTileLayer () const
    Retrieve the actual layer data.

- int getPriority () const
    Retrieve the priority of the layer.

- Map2D* getOwner () const
    Retrieve the map that owns the layer.

- long advance (float Fraction)
    advance the layer by Fraction.

## Detailed Description

Layer2D is an abstract type from which the layers of a Map2D are derived.

These are the TileLayer, IsoTileLayer and World2D types.

## Member Function Documentation

### Layer2D::Layer2D(const String& name, int priority=0)

Constructor.

Create a new layer with the given name and prioirty. each layer within a map must have a unique name. Layers with the same priority are ordered by the order in which they are added to the map.

### int Layer2D::getPriority() const

Retrieve the priority of the layer.

### Map2D* Layer2D::getOwner() const

Retrieve the map that owns the layer.

Returns NULL if the layer has not been added to a map yet.

### long Layer2D::advance(float Fraction)`[pure virtual]`

advance the layer by Fraction.

### LayerType Layer2D::getLayerType() const

Returns the LayerType of this layer.

### TileLayer* Layer2D::getTileLayer() const

Retrieve the actual layer data.

### int Layer2D::getPriority() const

Retrieve the priority of the layer.

### Map2D* Layer2D::getOwner() const

Retrieve the map that owns the layer.

Returns NULL if the layer has not been added to a map yet.

### long Layer2D::advance(float Fraction)

advance the layer by Fraction.

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

- 2D_Collision.h
- 2D_Map.h