Line data Source code
1 0 : /* 2 : 3 : OORingEffectEntity.h 4 : 5 : Entity subclass for expanding-ring effect, used for hyperspace entry and for 6 : some large explosions. 7 : 8 : 9 : Oolite 10 : Copyright (C) 2004-2013 Giles C Williams and contributors 11 : 12 : This program is free software; you can redistribute it and/or 13 : modify it under the terms of the GNU General Public License 14 : as published by the Free Software Foundation; either version 2 15 : of the License, or (at your option) any later version. 16 : 17 : This program is distributed in the hope that it will be useful, 18 : but WITHOUT ANY WARRANTY; without even the implied warranty of 19 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 : GNU General Public License for more details. 21 : 22 : You should have received a copy of the GNU General Public License 23 : along with this program; if not, write to the Free Software 24 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 : MA 02110-1301, USA. 26 : 27 : */ 28 : 29 : #import "Entity.h" 30 : 31 : 32 0 : @interface OORingEffectEntity: Entity 33 : { 34 : @private 35 0 : GLfloat _timePassed; 36 0 : GLfloat _innerRadius, 37 0 : _outerRadius, 38 0 : _innerGrowthRate, 39 0 : _outerGrowthRate; 40 : } 41 : 42 0 : + (instancetype) ringFromEntity:(Entity *)sourceEntity; 43 0 : + (instancetype) shrinkingRingFromEntity:(Entity *)sourceEntity; 44 : 45 : @end