forked from Mirrors/openclonk
38 lines
494 B
C
38 lines
494 B
C
/*--
|
|
Script goal
|
|
Author: Maikel
|
|
|
|
The script goal can be fulfilled from other scripts, e.g. a scenario script.
|
|
--*/
|
|
|
|
|
|
#include Library_Goal
|
|
|
|
local fulfilled;
|
|
|
|
protected func Initialize()
|
|
{
|
|
fulfilled = false;
|
|
return inherited(...);
|
|
}
|
|
|
|
public func IsFulfilled()
|
|
{
|
|
return fulfilled;
|
|
}
|
|
|
|
public func Fulfill()
|
|
{
|
|
fulfilled = true;
|
|
return;
|
|
}
|
|
|
|
public func GetDescription(int plr)
|
|
{
|
|
return this.Description;
|
|
}
|
|
|
|
/*-- Proplist --*/
|
|
local Name = "$Name$";
|
|
local Description = "$Description$";
|