Permalink
Browse files

_class renamed to ClassObject

  • Loading branch information...
1 parent 2c1f748 commit f1ee93a6f1b3c383d501303ec8adcc42fd4790cf @devolonter committed Jan 28, 2012
@@ -13,7 +13,7 @@ Import assets
Class FlxInvaders Extends FlxGame
Method New()
- Super.New(320, 240, PlayState._class)
+ Super.New(320, 240, PlayState.ClassObject)
ShowMouse()
End Method
@@ -7,7 +7,7 @@ Import alien
Class PlayState Extends FlxState Implements FlxOverlapNotifyListener
- Global _class:FlxClass = New PlayStateClass()
+ Global ClassObject:FlxClass = New PlayStateClass()
Field caption:FlxText
@@ -107,7 +107,7 @@ Class PlayState Extends FlxState Implements FlxOverlapNotifyListener
End Method
Method GetClass:FlxClass()
- Return _class
+ Return ClassObject
End Method
End Class
View
@@ -18,7 +18,7 @@ Class FlxBasic
Global _VISIBLECOUNT:Int
- Global _class:FlxClass = New FlxBasicClass()
+ Global ClassObject:FlxClass = New FlxBasicClass()
Global ExistsComparator:FlxBasicComparator = new FlxBasicExistsComparator()
View
@@ -11,7 +11,7 @@ Import system.flxcolor
Class FlxCamera Extends FlxBasic
- Global _class:FlxClass = New FlxCameraClass()
+ Global ClassObject:FlxClass = New FlxCameraClass()
Const STYLE_LOCKON:Int = 0
View
@@ -10,7 +10,7 @@ Import flxg
Class FlxEmitter Extends FlxGroup
- Global _class:FlxClass = New FlxEmitterClass()
+ Global ClassObject:FlxClass = New FlxEmitterClass()
Field x:Float
@@ -200,7 +200,7 @@ Public
End Method
Method EmitParticle:Void()
- Local particle:FlxParticle = FlxParticle(Recycle(FlxParticle._class))
+ Local particle:FlxParticle = FlxParticle(Recycle(FlxParticle.ClassObject))
particle.lifespan = lifespan
particle.elasticity = bounce
particle.Reset(x - (particle.width Shr 1) + FlxG.Random() * width, y - (particle.height Shr 1) + FlxG.Random() * height)
View
@@ -271,7 +271,7 @@ Public
End Function
Function LoadSound:FlxSound(sound:String, volume:Float = 1.0, looped:Bool = False, autoDestroy:Bool = False, autoPlay:Bool = False)
- Local s:FlxSound = FlxSound(sounds.Recycle(FlxSound._class))
+ Local s:FlxSound = FlxSound(sounds.Recycle(FlxSound.ClassObject))
s.Load(sound, looped, autoDestroy)
s.Volume = volume
@@ -600,7 +600,7 @@ Public
FlxG.globalSeed = Rnd(1, 10000000)
FlxG.worldBounds = New FlxRect(-10, -10, FlxG.width + 20, FlxG.height + 20)
FlxG.worldDivisions = 6
- Local debugPathDisplay:DebugPathDisplay = DebugPathDisplay(FlxG.GetPlugin(DebugPathDisplay._class))
+ Local debugPathDisplay:DebugPathDisplay = DebugPathDisplay(FlxG.GetPlugin(DebugPathDisplay.ClassObject))
If (debugPathDisplay <> Null) debugPathDisplay.Clear()
End Function
View
@@ -13,7 +13,7 @@ summary:This is an organizational class that can update and render a bunch of Fl
#End
Class FlxGroup Extends FlxBasic
- Global _class:FlxClass = New FlxGroupClass()
+ Global ClassObject:FlxClass = New FlxGroupClass()
#Rem
summary:See detail.
View
@@ -23,7 +23,7 @@ basic state information, sizes, scrolling, and basic physics and motion.
#End
Class FlxObject Extends FlxBasic
- Global _class:FlxClass = new FlxObjectClass()
+ Global ClassObject:FlxClass = new FlxObjectClass()
Global XComparator:FlxBasicComparator = new FlxObjectXComparator()
View
@@ -4,7 +4,7 @@ Import flxsprite
Class FlxParticle Extends FlxSprite
- Global _class:FlxClass = New FlxParticleClass()
+ Global ClassObject:FlxClass = New FlxParticleClass()
Field lifespan:Float
View
@@ -11,7 +11,7 @@ Import flixel.plugin.debugpathdisplay
Class FlxPath
- Global _class:FlxClass = new FlxObjectClass()
+ Global ClassObject:FlxClass = new FlxObjectClass()
Field nodes:Stack<FlxPoint>
@@ -213,7 +213,7 @@ Public
End Method
Function Manager:DebugPathDisplay()
- Return DebugPathDisplay(FlxG.GetPlugin(DebugPathDisplay._class))
+ Return DebugPathDisplay(FlxG.GetPlugin(DebugPathDisplay.ClassObject))
End Function
End Class
View
@@ -9,7 +9,7 @@ Import system.flxassetsmanager
Class FlxSound Extends FlxBasic
- Global _class:FlxSoundClass = New FlxSoundClass()
+ Global ClassObject:FlxSoundClass = New FlxSoundClass()
Field x:Float
View
@@ -15,7 +15,7 @@ Import "data/flx_default.png"
Class FlxSprite Extends FlxObject
- Global _class:FlxClass = new FlxSpriteClass()
+ Global ClassObject:FlxClass = new FlxSpriteClass()
Field origin:FlxPoint
View
@@ -4,7 +4,7 @@ Import flxgroup
Class FlxState Extends FlxGroup Abstract
- Global _class:FlxClass = new FlxStateClass()
+ Global ClassObject:FlxClass = new FlxStateClass()
Method Create:Void()
View
@@ -12,7 +12,7 @@ Import system.flxassetsmanager
Class FlxText Extends FlxSprite
- Global _class:FlxClass = new FlxTextClass()
+ Global ClassObject:FlxClass = new FlxTextClass()
Const ALIGN_LEFT:Float = 0
Const ALIGN_RIGHT:Float = 1
View
@@ -94,7 +94,7 @@ Public
End Method
Function Manager:TimerManager()
- Return TimerManager(FlxG.GetPlugin(TimerManager._class))
+ Return TimerManager(FlxG.GetPlugin(TimerManager.ClassObject))
End Function
Method ToString:String()
@@ -10,7 +10,7 @@ Private
Field _paths:Stack<FlxPath>
Public
- Global _class:FlxClass = new DebugPathDisplayClass()
+ Global ClassObject:FlxClass = new DebugPathDisplayClass()
Method New()
_paths = New Stack<FlxPath>
@@ -10,7 +10,7 @@ Private
Field _timers:Stack<FlxTimer>
Public
- Global _class:FlxClass = new TimerManagerClass()
+ Global ClassObject:FlxClass = new TimerManagerClass()
Method New()
_timers = New Stack<FlxTimer>()
@@ -289,7 +289,7 @@ Class FlxGroupRecycleUnitTest Extends FlxGroupUnitTestBase
Local recycled:FlxBasic
For Local i:Int = 0 To group.MaxSize - 1
- recycled = group.Recycle(FlxBasic._class)
+ recycled = group.Recycle(FlxBasic.ClassObject)
If (Not UnitTest.AssertNotNull(recycled)) Return False
recycled.ID = i
Next
@@ -303,17 +303,17 @@ Class FlxGroupRecycleUnitTest Extends FlxGroupUnitTestBase
group = New FlxGroup()
For Local i:Int = 0 To 9
- recycled = group.Recycle(FlxBasic._class)
+ recycled = group.Recycle(FlxBasic.ClassObject)
If (Not UnitTest.AssertNotNull(recycled)) Return False
recycled.ID = i
Next
- recycled = group.Recycle(FlxBasic._class)
+ recycled = group.Recycle(FlxBasic.ClassObject)
If (Not UnitTest.AssertNotNull(recycled)) Return False
If (Not UnitTest.AssertEqualsI(-1, recycled.ID)) Return False
group.Members[5].Kill()
- recycled = group.Recycle(FlxBasic._class)
+ recycled = group.Recycle(FlxBasic.ClassObject)
If (Not UnitTest.AssertNotNull(recycled)) Return False
If (Not UnitTest.AssertEqualsI(5, recycled.ID)) Return False
@@ -624,7 +624,7 @@ Class FlxGroupGetFirstAvailableUnitTest Extends FlxGroupUnitTestBase
i+=1
Next
- Local basic:FlxBasic = group.GetFirstAvailable(FlxBasic._class)
+ Local basic:FlxBasic = group.GetFirstAvailable(FlxBasic.ClassObject)
If (UnitTest.AssertNotNull(basic) And UnitTest.AssertEqualsI(5, basic.ID)) Then
basic = group.GetFirstAvailable()
@@ -641,7 +641,7 @@ Class FlxGroupGetFirstAvailableUnitTest Extends FlxGroupUnitTestBase
object.ID = 11
object.Kill()
- object = FlxObject(group.GetFirstAvailable(FlxObject._class))
+ object = FlxObject(group.GetFirstAvailable(FlxObject.ClassObject))
Return (UnitTest.AssertNotNull(object) And UnitTest.AssertEqualsI(11, object.ID))
End If
@@ -908,7 +908,7 @@ End Class
Class FlxGGetPluginUnitTest Implements IUnitTest
Method Run:Bool()
- Return UnitTest.AssertNotNull(TimerManager(FlxG.GetPlugin(TimerManager._class)))
+ Return UnitTest.AssertNotNull(TimerManager(FlxG.GetPlugin(TimerManager.ClassObject)))
End Method
Method GetName:String()
@@ -921,7 +921,7 @@ Class FlxGRemovePluginUnitTest Implements IUnitTest
Method Run:Bool()
Local oldL:Int = FlxG.plugins.Length()
- FlxG.RemovePlugin(FlxG.GetPlugin(TimerManager._class))
+ FlxG.RemovePlugin(FlxG.GetPlugin(TimerManager.ClassObject))
If (Not UnitTest.AssertEqualsI(oldL - 1, FlxG.plugins.Length())) Return False
FlxG.Init(Null, 0, 0, 0)
Return True
@@ -937,7 +937,7 @@ Class FlxGRemovePluginTypeUnitTest Implements IUnitTest
Method Run:Bool()
Local oldL:Int = FlxG.plugins.Length()
- FlxG.RemovePluginType(TimerManager._class)
+ FlxG.RemovePluginType(TimerManager.ClassObject)
If (Not UnitTest.AssertEqualsI(oldL - 1, FlxG.plugins.Length())) Return False
FlxG.Init(Null, 0, 0, 0)
Return True
@@ -955,7 +955,7 @@ End Class
Class TimeManagerUnitTest Implements IUnitTest
Method Run:Bool()
- Local timeManager:TimerManager = TimerManager(FlxG.GetPlugin(TimerManager._class))
+ Local timeManager:TimerManager = TimerManager(FlxG.GetPlugin(TimerManager.ClassObject))
Local timer:FlxTimer = New FlxTimer()
timeManager.Add(New FlxTimer())
@@ -11,7 +11,7 @@ End Function
Class CameraFX Extends FlxGame
Method New()
- Super.New(640, 480, CameraFXState._class)
+ Super.New(640, 480, CameraFXState.ClassObject)
End Method
Method OnContentInit:Void()
@@ -41,7 +41,7 @@ End Class
Class CameraFXState Extends FlxState
- Global _class:FlxClass = new CameraFXStateClass()
+ Global ClassObject:FlxClass = new CameraFXStateClass()
Method Create:Void()
Local manual:FlxText = New FlxText(10, 10, 620, "- Press S to shake", New FlxTextAngelFontDriver())
@@ -10,7 +10,7 @@ End Function
Class Cameras Extends FlxGame
Method New()
- Super.New(640, 480, CamerasState._class)
+ Super.New(640, 480, CamerasState.ClassObject)
End Method
End Class
@@ -29,7 +29,7 @@ End Class
Class CamerasState Extends FlxState
- Global _class:FlxClass = new CamerasStateClass()
+ Global ClassObject:FlxClass = new CamerasStateClass()
Field pink_camera:FlxCamera
Field red_camera:FlxCamera
@@ -10,7 +10,7 @@ End Function
Class Objects Extends FlxGame
Method New()
- Super.New(640, 480, ObjectsState._class)
+ Super.New(640, 480, ObjectsState.ClassObject)
FlxG.visualDebug = True
End Method
@@ -30,7 +30,7 @@ End Class
Class ObjectsState Extends FlxState
- Global _class:FlxClass = new ObjectsStateClass()
+ Global ClassObject:FlxClass = new ObjectsStateClass()
Field blocks1:FlxGroup
Field blocks2:FlxGroup
@@ -10,7 +10,7 @@ End Function
Class Paths Extends FlxGame
Method New()
- Super.New(640, 480, PathsState._class)
+ Super.New(640, 480, PathsState.ClassObject)
FlxG.visualDebug = True
End Method
@@ -30,7 +30,7 @@ End Class
Class PathsState Extends FlxState
- Global _class:FlxClass = new PathsStateClass()
+ Global ClassObject:FlxClass = new PathsStateClass()
Field pathFrowardedObject:FlxObject
Field pathForward:FlxPath
@@ -10,7 +10,7 @@ End Function
Class Sprites Extends FlxGame
Method New()
- Super.New(640, 480, SpritesState._class, 1, 60)
+ Super.New(640, 480, SpritesState.ClassObject, 1, 60)
End Method
Method OnContentInit:Void()
@@ -39,7 +39,7 @@ End Class
Class SpritesState Extends FlxState
- Global _class:FlxClass = New SpritesStateClass()
+ Global ClassObject:FlxClass = New SpritesStateClass()
Field soundBox:FlxSprite
Field player:FlxSprite
@@ -10,7 +10,7 @@ End Function
Class Sprites Extends FlxGame
Method New()
- Super.New(640, 480, SpritesState._class)
+ Super.New(640, 480, SpritesState.ClassObject)
FlxG.visualDebug = True
End Method
@@ -30,7 +30,7 @@ End Class
Class SpritesState Extends FlxState
- Global _class:FlxClass = new SpritesStateClass()
+ Global ClassObject:FlxClass = new SpritesStateClass()
Field sprite:FlxSprite
@@ -11,7 +11,7 @@ End Function
Class AngelFont Extends FlxGame
Method New()
- Super.New(640, 480, TextState._class)
+ Super.New(640, 480, TextState.ClassObject)
End Method
Method OnContentInit:Void()
@@ -35,7 +35,7 @@ End Class
Class TextState Extends FlxState
- Global _class:FlxClass = new TextStateClass()
+ Global ClassObject:FlxClass = new TextStateClass()
Method Create:Void()
Local helloWorld:FlxText = New FlxText(10, 10, 620, "Hello World!")
Oops, something went wrong.

0 comments on commit f1ee93a

Please sign in to comment.