Colobot
Public Member Functions | Public Attributes | List of all members
CSceneEndCondition Class Reference

Scene end condition. More...

#include <scene_conditions.h>

Inheritance diagram for CSceneEndCondition:
Inheritance graph
[legend]

Public Member Functions

void Read (CLevelParserLine *line) override
 Read from line in scene file. More...
 
bool CheckLost ()
 Checks if lost condition is met. More...
 
Error GetMissionResult ()
 Get mission result. More...
 
- Public Member Functions inherited from CSceneCondition
bool Check ()
 Checks if this condition is met. More...
 

Public Attributes

int winTeam = 0
 
int lost = -1
 
bool immediat = false
 
- Public Attributes inherited from CSceneCondition
Math::Vector pos = Math::Vector(0.0f, 0.0f, 0.0f)*g_unit
 
float dist = 8.0f*g_unit
 
ObjectType type = OBJECT_NULL
 
float powermin = -1
 
float powermax = 100
 
ToolType tool = ToolType::Other
 
DriveType drive = DriveType::Other
 
bool countTransported = true
 
int team = 0
 
int min = 1
 
int max = 9999
 

Additional Inherited Members

- Protected Member Functions inherited from CSceneCondition
int CountObjects ()
 Count all object matching the conditions. More...
 

Detailed Description

Scene end condition.

Member Function Documentation

void CSceneEndCondition::Read ( CLevelParserLine line)
overridevirtual

Read from line in scene file.

Reimplemented from CSceneCondition.

bool CSceneEndCondition::CheckLost ( )

Checks if lost condition is met.

Error CSceneEndCondition::GetMissionResult ( )

Get mission result.


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