Partikelobjekt: Unterschied zwischen den Versionen

Aus AquaSoft Wiki
Zur Navigation springenZur Suche springen
Zeile 3: Zeile 3:
 
<code>
 
<code>
 
   IParticle '''inherits from''' [[ISlideShowObject]]
 
   IParticle '''inherits from''' [[ISlideShowObject]]
     function Filename: [[IFilename]];  
+
     function InitialSpeed: [[IParticleRangeValue]]   
     function GetSpeed: Single;
+
     function Speed: [[IParticleRangeValue]]
    procedure SetSpeed(const P: Single);
+
     function InitialDirection: [[IParticleRangeValue]]
     function GetDirection: Single;
+
     function Direction: [[IParticleRangeValue]]
    procedure SetDirection(const P: Single);
+
     function InitialSize: [[IParticleRangeValue]]
     function GetCount: Integer;
+
     function Size: [[IParticleRangeValue]]
    procedure SetCount(const P: Integer);
+
     function InitialRotation: [[IParticleRangeValue]]
     function GetSize: Single;
+
     function Rotation: [[IParticleRangeValue]]
    procedure SetSize(const P: Single);
+
     function InitialRotationFrequency: [[IParticleRangeValue]]
     function GetMove: Integer;
+
     function RotationFrequency: [[IParticleRangeValue]]
    procedure SetMove(const P: Integer);
 
     function GetMoveStrength: Single;
 
    procedure SetMoveStrength(const P: Single);
 
     function GetMoveSineFrequency: Single;
 
    procedure SetMoveSineFrequency(const P: Single);
 
     function GetClipping: Boolean; 
 
     procedure SetClipping(const P: Boolean);
 
  end;
 
</code>
 
= Methoden =
 
* Objekt Erzeugung
 
<code>
 
  function CreateParticleObject: IParticle
 
</code>
 
  
* Dateiname für ein bestimmtes Partikelbild, beispielsweise
+
    property Move: [[TParticleMove]]
<code>
+
    function InitialMoveStrength: [[IParticleRangeValue]]
  function Filename: IFilename;
+
    function MoveStrength: [[IParticleRangeValue]]
</code>
+
    function InitialMoveSineFrequency: [[IParticleRangeValue]]
 +
    function MoveSineFrequency: [[IParticleRangeValue]]
  
 +
    function MaxAge: [[IParticleRangeValue]]
 +
    function ParticlesPerSecond: [[IParticleRangeValue]]
 +
    function EmitterSpread: [[IParticleRangeValue]]
  
* Dauer, wie lange ein Partikel maximal existieren soll
+
    property SpriteAnimation: [[TParticleSpriteAnimation]]
<code>
+
    function SpriteAnimationFrequency: [[IParticleRangeValue]]
  function GetMaxAge: Single;
 
  procedure SetMaxAge(const P: Single);
 
</code>
 
  
 +
    property Filename: [[IFilename]]
 +
    property Clipping: Boolean
 +
    property PreWarmTime: Integer
  
* Partikelgeschwindigkeit
+
    property Emitter: [[TParticleEmitter]]
<code> 
+
    property Options: [[TParticleOptions]]
  function GetSpeed: Single;
+
    property Environment: [[TParticleEnvironment]]
  procedure SetSpeed(const P: Single);
 
</code>
 
  
 
+
    property Seed: Int64  
* Richtung, in die Partikel sich bewegen
+
   end;
<code> 
 
  function GetDirection: Single;
 
  procedure SetDirection(const P: Single);
 
</code>  
 
 
 
 
 
* Anzahl der Partikel
 
<code>
 
  function GetCount: Integer;
 
  procedure SetCount(const P: Integer);
 
</code>
 
 
 
 
 
* Größe der Partikel
 
<code>
 
  function GetSize: Single;
 
   procedure SetSize(const P: Single);
 
</code>
 
 
 
 
 
* Bewegungsart der Partikel
 
** Wert '''0''': keine
 
** Wert '''1''': Sinusschwingung
 
** Wert '''2''': Kreisende Bewegung
 
** Wert '''3''': zufällige Bewegung in eine Richtung
 
** Wert '''4''': zufällige Bewegung in beide Richtungen
 
** Wert '''5''': zufällige Bewegung mit Anziehungskraft
 
<code> 
 
  function GetMove: Integer;
 
  procedure SetMove(const P: Integer);
 
</code>
 
 
 
 
 
* Stärke der Partikelbewegung
 
<code> 
 
  function GetMoveStrength: Single;
 
  procedure SetMoveStrength(const P: Single);
 
</code>
 
 
 
 
 
* Bei eingestellter Sinusbewegung, die Sinusfrequenz
 
<code> 
 
  function GetMoveSineFrequency: Single;
 
  procedure SetMoveSineFrequency(const P: Single);
 
</code>
 
 
 
* Partikeleffekt zuschneiden?
 
<code>
 
  function GetClipping: Boolean; 
 
  procedure SetClipping(const P: Boolean);
 
 
</code>
 
</code>
  
 +
= Methoden =
  
 
[[Kategorie:Scripting-API]]
 
[[Kategorie:Scripting-API]]

Version vom 23. Juni 2014, 11:00 Uhr

Das Partikelobjekt ist vom Typ IParticle und leitet von ISlideShowObject ab. Mit diesem Objekt kann man Partikeleffekte erstellen.

 IParticle inherits from ISlideShowObject
   function InitialSpeed: IParticleRangeValue  
   function Speed: IParticleRangeValue 
   function InitialDirection: IParticleRangeValue 
   function Direction: IParticleRangeValue 
   function InitialSize: IParticleRangeValue 
   function Size: IParticleRangeValue 
   function InitialRotation: IParticleRangeValue 
   function Rotation: IParticleRangeValue 
   function InitialRotationFrequency: IParticleRangeValue 
   function RotationFrequency: IParticleRangeValue 
   property Move: TParticleMove 
   function InitialMoveStrength: IParticleRangeValue 
   function MoveStrength: IParticleRangeValue 
   function InitialMoveSineFrequency: IParticleRangeValue 
   function MoveSineFrequency: IParticleRangeValue
   function MaxAge: IParticleRangeValue 
   function ParticlesPerSecond: IParticleRangeValue 
   function EmitterSpread: IParticleRangeValue
   property SpriteAnimation: TParticleSpriteAnimation 
   function SpriteAnimationFrequency: IParticleRangeValue
   property Filename: IFilename 
   property Clipping: Boolean 
   property PreWarmTime: Integer 
   property Emitter: TParticleEmitter
   property Options: TParticleOptions
   property Environment: TParticleEnvironment
   property Seed: Int64  
 end;

Methoden