#include "util/reader.hpp"
#include "video/drawing_request.hpp"
Go to the source code of this file.
Functions | |
int | reader_get_layer (const Reader &reader, int def) |
int reader_get_layer | ( | const Reader & | reader, | |
int | def | |||
) |
Definition at line 26 of file reader.cpp.
References lisp::Lisp::get(), and LAYER_GUI.
Referenced by Background::Background(), Decal::Decal(), Gradient::Gradient(), SnowParticleSystem::parse(), RainParticleSystem::parse(), GhostParticleSystem::parse(), CometParticleSystem::parse(), CloudParticleSystem::parse(), ScriptedObject::ScriptedObject(), Thunderstorm::Thunderstorm(), and TileMap::TileMap().
00027 { 00028 int tmp = 0; 00029 bool status; 00030 00031 status = reader.get ("z-pos", tmp); 00032 00033 if (!status) 00034 status = reader.get ("layer", tmp); 00035 00036 if (!status) 00037 tmp = def; 00038 00039 if (tmp > (LAYER_GUI - 100)) 00040 tmp = LAYER_GUI - 100; 00041 00042 return (tmp); 00043 } /* int reader_get_layer */