Exemplo n.º 1
0
static bool fh_inherit(dbref target, dbref player, FLAG flag, int fflags, bool reset)
{
    if (!Inherits(player))
    {
        return false;
    }
    return (fh_any(target, player, flag, fflags, reset));
}
Exemplo n.º 2
0
int ph_inherit(dbref target, dbref player, POWER power, int fpowers, int reset)
{
    if (!Inherits(player)) {
	return 0;
    }

    return (ph_any(target, player, power, fpowers, reset));
}
char *pc1_SDB_Resource :: GetContextType ( )
{
  char         *base_context = NULL;
BEGINSEQ
  if ( !Exist() )                                    ERROR
 
  if ( Inherits("SDB_Type") )
    base_context = "CTX_Structure";
  else if ( Inherits("SDB_Member") )
    base_context = "CTX_Property";
  else if ( Inherits("ADK_Project") )
    base_context = "CTX_Project";
  else if ( Inherits("ADK_Application") )
    base_context = "CTX_Application";
  else if ( Inherits("ADK_StyleElement") )
    base_context = "CTX_Control";
RECOVER
ENDSEQ
  return(base_context);
}
Exemplo n.º 4
0
int fh_inherit( dbref target, dbref player, FLAG flag, int fflags, int reset ) {
    if( !Inherits( player ) ) {
        return 0;
    }
    return ( fh_any( target, player, flag, fflags, reset ) );
}