lundi 30 octobre 2017

Is this a strategy pattern?

I was wondering if this falls under a strategy pattern:

I have a list of IConverters (They convert files to ingame assets). They all sit inside of a ConverterManager. Every IConverter has an extension type it looks for. So say we have a file with .exe extension. The ConverterManager will look for the converter that looks for the .exe extension. If it exists it will pass the path of the file through, if it doesn't, it won't do anything.

I was wondering if this is a strategy pattern though as I am calculating what behaviour to choose based on the extension of the file.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire