コード例 #1
0
DEFINE_ACTION_FUNCTION(AAmmo, GetParentAmmo)
{
	PARAM_SELF_PROLOGUE(AAmmo);
	ACTION_RETURN_OBJECT(self->GetParentAmmo());
}
コード例 #2
0
ファイル: p_pspr.cpp プロジェクト: coelckers/gzdoom
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetPSprite)	// the underscore is needed to get past the name mangler which removes the first clas name character to match the class representation (needs to be fixed in a later commit)
{
	PARAM_SELF_STRUCT_PROLOGUE(player_t);
	PARAM_INT(id);
	ACTION_RETURN_OBJECT(self->GetPSprite((PSPLayers)id));
}
コード例 #3
0
ファイル: p_things.cpp プロジェクト: dwing4g/gzdoom
DEFINE_ACTION_FUNCTION(AActor, GetSpawnableType)
{
    PARAM_PROLOGUE;
    PARAM_INT(num);
    ACTION_RETURN_OBJECT(P_GetSpawnableType(num));
}