|
![]() |
Apocalypse mirror
Sourceforge mirror |
| News | Info | Characters | Arenas | Screenshots | Forums | Download | ||||
| Developer: | Making of | Character-HOWTO | AI Design | Submit a Character | |||
| Documentation: | Main Page | Modules | Class Hierarchy | Class List | File List |
#include <Background.h>
Public Member Functions | |
| CBackground () | |
| ~CBackground () | |
| void | Load (int a_iBackgroundNumber) |
| void | AddExtraLayer (const SBackgroundLayer &a_roLayer) |
| Adds a layer to the background. | |
| void | DeleteExtraLayers () |
| bool | IsOK () |
| void | Draw (int a_iXPosition, int a_iYPosition, int a_iYOffset) |
Protected Attributes | |
| int | m_iNumber |
| int | m_iFirstExtraLayer |
| bool | m_bOK |
| CLayerVector | m_aLayers |
Private Types | |
| typedef std::vector< SBackgroundLayer > | CLayerVector |
| typedef CLayerVector::iterator | CLayerIterator |
Private Member Functions | |
| void | Clear () |
Classes | |
| struct | SBackgroundLayer |
The backgrounds are identified by their number. Single-layer backgrounds do not have description files. Multi-layer backgrounds have a description file which has the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adds a layer to the background. The background object will assume ownership of the given structure, including the surface within. |
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|