home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2001 January / Game.EXE_01_2001.iso / demos / Blade of Darkness / data1.cab / Program_Executable_Files / Lib / BBLib.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-11-16  |  7.2 KB  |  160 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. import BBLibc
  5.  
  6. class B_BitMap24Ptr:
  7.     
  8.     def __init__(self, this):
  9.         self.this = this
  10.         self.thisown = 0
  11.  
  12.     
  13.     def __del__(self):
  14.         if self.thisown == 1:
  15.             BBLibc.delete_B_BitMap24(self.this)
  16.         
  17.  
  18.     
  19.     def GetDimension(self):
  20.         val = BBLibc.B_BitMap24_GetDimension(self.this)
  21.         return val
  22.  
  23.     
  24.     def GetData(self):
  25.         val = BBLibc.B_BitMap24_GetData(self.this)
  26.         return val
  27.  
  28.     
  29.     def SaveToBMP(self, arg0):
  30.         val = BBLibc.B_BitMap24_SaveToBMP(self.this, arg0)
  31.         return val
  32.  
  33.     
  34.     def ReadFromBMP(self, arg0):
  35.         val = BBLibc.B_BitMap24_ReadFromBMP(self.this, arg0)
  36.         return val
  37.  
  38.     
  39.     def SaveToJPEG(self, arg0, *args):
  40.         val = apply(BBLibc.B_BitMap24_SaveToJPEG, (self.this, arg0) + args)
  41.         return val
  42.  
  43.     
  44.     def ReadFromJPEG(self, arg0):
  45.         val = BBLibc.B_BitMap24_ReadFromJPEG(self.this, arg0)
  46.         return val
  47.  
  48.     
  49.     def ReadFromFile(self, arg0):
  50.         val = BBLibc.B_BitMap24_ReadFromFile(self.this, arg0)
  51.         return val
  52.  
  53.     
  54.     def SaveToFile(self, arg0, *args):
  55.         val = apply(BBLibc.B_BitMap24_SaveToFile, (self.this, arg0) + args)
  56.         return val
  57.  
  58.     
  59.     def ChangeRGBOrder(self):
  60.         val = BBLibc.B_BitMap24_ChangeRGBOrder(self.this)
  61.         return val
  62.  
  63.     
  64.     def __repr__(self):
  65.         return '<C B_BitMap24 instance>'
  66.  
  67.  
  68.  
  69. class B_BitMap24(B_BitMap24Ptr):
  70.     
  71.     def __init__(self, *args):
  72.         self.this = apply(BBLibc.new_B_BitMap24, () + args)
  73.         self.thisown = 1
  74.  
  75.  
  76.  
  77. class B_ResourceManagerPtr:
  78.     
  79.     def __init__(self, this):
  80.         self.this = this
  81.         self.thisown = 0
  82.  
  83.     
  84.     def NResources(self, arg0):
  85.         val = BBLibc.B_ResourceManager_NResources(self.this, arg0)
  86.         return val
  87.  
  88.     
  89.     def GetResourceName(self, arg0, arg1):
  90.         val = BBLibc.B_ResourceManager_GetResourceName(self.this, arg0, arg1)
  91.         return val
  92.  
  93.     
  94.     def GetResourceFile(self, arg0, arg1):
  95.         val = BBLibc.B_ResourceManager_GetResourceFile(self.this, arg0, arg1)
  96.         return val
  97.  
  98.     
  99.     def IsResourceLoaded(self, arg0, arg1):
  100.         val = BBLibc.B_ResourceManager_IsResourceLoaded(self.this, arg0, arg1)
  101.         return val
  102.  
  103.     
  104.     def SaveResource(self, arg0, arg1, arg2):
  105.         val = BBLibc.B_ResourceManager_SaveResource(self.this, arg0, arg1, arg2)
  106.         return val
  107.  
  108.     
  109.     def LoadResourceToMemory(self, arg0, arg1):
  110.         val = BBLibc.B_ResourceManager_LoadResourceToMemory(self.this, arg0, arg1)
  111.         return val
  112.  
  113.     
  114.     def GetnFiles(self):
  115.         val = BBLibc.B_ResourceManager_GetnFiles(self.this)
  116.         return val
  117.  
  118.     
  119.     def GetFile(self, arg0):
  120.         val = BBLibc.B_ResourceManager_GetFile(self.this, arg0)
  121.         return val
  122.  
  123.     
  124.     def __repr__(self):
  125.         return '<C B_ResourceManager instance>'
  126.  
  127.  
  128.  
  129. class B_ResourceManager(B_ResourceManagerPtr):
  130.     
  131.     def __init__(self, this):
  132.         self.this = this
  133.  
  134.  
  135. GetnOpenedInputFiles = BBLibc.GetnOpenedInputFiles
  136. GetnOpenInputFiles = BBLibc.GetnOpenInputFiles
  137. ResetnOpenedInputFiles = BBLibc.ResetnOpenedInputFiles
  138. SetOnOpenInputFileFunc = BBLibc.SetOnOpenInputFileFunc
  139. RemoveOnOpenInputFileFunc = BBLibc.RemoveOnOpenInputFileFunc
  140. ReadBOD = BBLibc.ReadBOD
  141. LoadBOD = BBLibc.LoadBOD
  142. ReadAutoBOD = BBLibc.ReadAutoBOD
  143. ReadMMP = BBLibc.ReadMMP
  144. SaveBODData = BBLibc.SaveBODData
  145. LoadBODData = BBLibc.LoadBODData
  146. SaveAutoBODData = BBLibc.SaveAutoBODData
  147. LoadAutoBODData = BBLibc.LoadAutoBODData
  148. LoadResourceToMemory = BBLibc.LoadResourceToMemory
  149.  
  150. def GetResourceManager():
  151.     val = BBLibc.GetResourceManager()
  152.     val = B_ResourceManagerPtr(val)
  153.     return val
  154.  
  155. B_CID_OBJDSCR = BBLibc.B_CID_OBJDSCR
  156. B_CID_BITMAP = BBLibc.B_CID_BITMAP
  157. B_CID_BMP = BBLibc.B_CID_BMP
  158. B_CID_ALPHABMP = BBLibc.B_CID_ALPHABMP
  159. B_CID_AUTO_OBJDSCR = BBLibc.B_CID_AUTO_OBJDSCR
  160.