예제 #1
0
bool mtype_special_attack::call( monster &mon ) const
{
    if( function_type == ATTACK_CPP ) {
        return cpp_function( &mon );
    } else if( function_type == ATTACK_ACTOR_PTR ) {
        return actor_ptr->call( mon );
    }

    return false;
}
예제 #2
0
extern "C" void c_function()
{
    cpp_function();
}