Community Coding : Design Patterns

Trying out AbstractFactory pattern :

04_AbstractFactory_Example.vl (79.6 KB)

Added comments on AbstractFactory.
04_AbstractFactory.vl (137.3 KB)

And here is a first shot at FactoryMethod.
FactoryMethod.vl (38.6 KB)

Another at the ObserverPattern.
ObserverPattern.vl (44.5 KB)

Quick try at the Facad pattern with TextureFX (not sure about Dispose though)
FacadPattern.zip (9.6 KB)

We also have the State Pattern now, see this video for the theory, and here is the implementation:

FactoryPattern.vl (89.8 KB)

Another shot at Factory Pattern in VL

FactoryPatternAutoRegister.vl (106.0 KB)
an other variation, this time the factory register automatically every class that implement the common interface, and create them via dynamic instantiation.

I’ve just added RemoveByIndex and ClearAll methods

FactoryPatternAutoRegister_2.vl (124.3 KB)