CGE 2014

Written by Adrian Killens on .

I'm now back from my little trip to CGE 2014 in Vegas. It was an awesome expo and if you've never been then I'd highly recommend it. It's now run by the guys that do Retrogaming Roundup and apparently it was the largest turn out they've ever had! They were even nice enough to let us put Lunar Panda on display in the arcade room for the duration.

Gimpy in Vegas

Groupees Bundle

Written by Adrian Killens on .

We've just been added to a new bundle on Groupees, where you can now grab Lunar Panda Deluxe along with a few other games and my band's album for a mere $3. It's proving pretty popular and has already sold over 2000 copies. Check it out here:

Event forwarding

Written by Dean Edis on .

I was having a coding session recently and needed a class to 'pass on' an event fired from a another class.

ClassA 'has a' private ClassB. ClassB has an EventB event which occasionally fires.
I want ClassA to have an EventA event which fires whenever EventB does.

My first approach was simple: Have ClassA subscribe to ClassB.EventB. When it receives the event it fires its own EventA.

Did you know...

A simpler approach is to use a custom event subscription:

class ClassA 
    private ClassB m_b = new ClassB(); 

    public event EventType EventA 
        add { m_b.EventB += value; } 
        remove { m_b.EventB -= value; } 

Now, anything subscribing to ClassA.EventA will get its subscription passed on to ClassB, but all without the caller having any direct access to ClassB!

Clean and simple...