Changeset 10442 in orxonox.OLD for branches/blink/src/world_entities/effects/blink.h
- Timestamp:
- Jan 28, 2007, 2:56:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blink/src/world_entities/effects/blink.h
r10433 r10442 2 2 * @file blink.h 3 3 */ 4 /*! example input in .oxw file with the standard values 5 6 <Blink> 7 <name>Blink1</name> 8 <position>580, 70, -130</position> 9 <color>0, 255, 255</color> 10 <size>8</size> 11 <period>9</period> 12 <sequence>0123456789</sequence><!-- the number describe the strength of the blink light --> 13 </Blink> 14 15 */ 4 16 5 17 #ifndef _BLINK_H … … 26 38 void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); } 27 39 void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); } 28 void set Omega(float w) { this->omega = w; }40 void setPeriod(float t) { this->period = t; } 29 41 void setColor(float r, float g, float b) { this->color = Color(r/255, g/255, b/255); } 42 void loadBlinkSequence(const std::string& seq) { this->blinkSequence = seq; } 30 43 31 44 virtual void tick(float dt); … … 35 48 Billboard* bBoard; 36 49 Color color; 50 std::string blinkSequence; //! 1 means fully viewable, 0 means fully transparent 37 51 float angle; 38 float omega;52 float period; //! period in seconds 39 53 float blinkStr; 40 54 float size; //! only one float caus' its quadratical 55 int seqCounter; 56 float symbolTime; //! defines how long one symbol of the sequence will be shown in sec 57 float timer; 41 58 }; 42 59
Note: See TracChangeset
for help on using the changeset viewer.