home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Fire / Classes / FireTexture.uc next >
Text File  |  2003-10-22  |  2KB  |  114 lines

  1. //=============================================================================
  2. // FireTexture: A FireEngine fire texture.
  3. // This is a built-in Unreal class and it shouldn't be modified.
  4. //=============================================================================
  5. class FireTexture extends FractalTexture
  6.     native
  7.     noexport;
  8.  
  9. //
  10. // Spark types.
  11. //
  12. enum ESpark
  13. {    
  14.     SPARK_Burn                ,
  15.     SPARK_Sparkle            ,
  16.     SPARK_Pulse                ,
  17.     SPARK_Signal            ,
  18.     SPARK_Blaze                ,
  19.     SPARK_OzHasSpoken        ,
  20.     SPARK_Cone                ,
  21.     SPARK_BlazeRight        ,
  22.     SPARK_BlazeLeft            ,
  23.     SPARK_Cylinder            ,
  24.     SPARK_Cylinder3D        ,
  25.     SPARK_Lissajous         ,
  26.     SPARK_Jugglers           ,
  27.     SPARK_Emit                ,
  28.     SPARK_Fountain            ,
  29.     SPARK_Flocks            ,
  30.     SPARK_Eels                ,
  31.     SPARK_Organic            ,
  32.     SPARK_WanderOrganic        ,
  33.     SPARK_RandomCloud        ,
  34.     SPARK_CustomCloud        ,
  35.     SPARK_LocalCloud        ,
  36.     SPARK_Stars                ,
  37.     SPARK_LineLightning        ,
  38.     SPARK_RampLightning        ,
  39.     SPARK_SphereLightning    ,
  40.     SPARK_Wheel                ,
  41.     SPARK_Gametes            ,
  42.     SPARK_Sprinkler            ,
  43. };
  44.  
  45.  
  46. // Draw mode types
  47. enum DMode
  48. {
  49.     DRAW_Normal  ,
  50.     DRAW_Lathe   ,
  51.     DRAW_Lathe_2 ,
  52.     DRAW_Lathe_3 ,
  53.     DRAW_Lathe_4 ,
  54. };
  55.  
  56.  
  57.  
  58. //
  59. // Information about a single spark.
  60. //
  61.  
  62. struct Spark
  63. {
  64.     var ESpark Type;   // Spark type.
  65.     var byte   Heat;   // Spark heat.
  66.     var byte   X;      // Spark X location (0 - Xdimension-1).
  67.     var byte   Y;      // Spark Y location (0 - Ydimension-1).
  68.  
  69.     var byte   ByteA;  // X-speed.
  70.     var byte   ByteB;  // Y-speed.
  71.     var byte   ByteC;  // Age, Emitter freq.
  72.     var byte   ByteD;  // Exp.Time.
  73. };
  74.  
  75.  
  76. //
  77. // Persistent fire parameters.
  78. //
  79.  
  80. var(FirePaint)    ESpark  SparkType;
  81. var(FirePaint)    byte    RenderHeat;
  82. var(FirePaint)    bool    bRising;
  83.  
  84. var(FirePaint)    byte    FX_Heat;
  85. var(FirePaint)    byte    FX_Size;
  86. var(FirePaint)  byte    FX_AuxSize;
  87. var(FirePaint)  byte    FX_Area;
  88. var(FirePaint)    byte    FX_Frequency;
  89. var(FirePaint)    byte    FX_Phase;
  90. var(FirePaint)    byte    FX_HorizSpeed;
  91. var(FirePaint)    byte    FX_VertSpeed;
  92.  
  93. var(FirePaint)  DMode   DrawMode;
  94. var(FirePaint)  int     SparksLimit;
  95.  
  96. var             int     NumSparks;
  97. var transient array<Spark> Sparks;
  98.  
  99. //
  100. // Transient fire parameters.
  101. //
  102.  
  103. var transient   int     OldRenderHeat;
  104. var transient    byte    RenderTable[1028];
  105. var transient    byte    StarStatus;
  106. var transient   byte    PenDownX;
  107. var transient   byte    PenDownY;
  108.  
  109. defaultproperties
  110. {
  111. }
  112.  
  113.  
  114.