All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4MCNode::int_bool Class Reference

#include <C4MapCreatorS2.h>

Public Member Functions

int32_t Evaluate (int32_t relative_to)
void Set (int32_t value, bool percent)

Detailed Description

Definition at line 174 of file C4MapCreatorS2.h.

Member Function Documentation

int32_t C4MCNode::int_bool::Evaluate ( int32_t  relative_to)

Definition at line 177 of file C4MapCreatorS2.h.

References C4MC_SizeRes.

Referenced by AlgoScript(), C4MCOverlay::Evaluate(), and C4MCPoint::Evaluate().

178  { if (percent) return value * relative_to / C4MC_SizeRes; else return value; }
#define C4MC_SizeRes

Here is the caller graph for this function:

void C4MCNode::int_bool::Set ( int32_t  value,
bool  percent 

Definition at line 179 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::Default(), and C4MCPoint::SetField().

180  { this->value = value; this->percent = percent; }

Here is the caller graph for this function:

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