Search found 3 matches

by Indigo gem
Mon Jan 16, 2012 4:48 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 85233

Re: middleclass & extras: middleclass 2.0 is out!

here code I used, I admit I make a mistake when typing (dont write constructers etc.), but this is full code below dont work require "middleclass" local Test1 = class("Test1") local Test2 = class("Test2", Test1) local Test3 = class("Test3", Test2) function Tes...
by Indigo gem
Mon Jan 16, 2012 12:05 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 85233

Re: middleclass & extras: middleclass 2.0 is out!

Is it invalid use to call super class initialize like this? Test1 = class("Test1") Test2 = class("Test2", Test1) Test3 = class("Test3", Test2) function Test3:initialize(params) self.super.class.initialize(self, params) -- go in infinite recursion call end this works for...
by Indigo gem
Fri Dec 23, 2011 12:43 pm
Forum: Libraries and Tools
Topic: stateful.lua
Replies: 88
Views: 56621

Re: stateful.lua

Hi, how I can implement state of the game in another file? Because state created only when added, so all state should be implemented in one file?