tag:blogger.com,1999:blog-36543495.post3789660824102019699..comments2023-06-27T03:57:22.322-06:00Comments on johnlindquist.com: PatternCraft – Memento Patternjohnlindquisthttp://www.blogger.com/profile/11109256250219992848noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-36543495.post-41388986654577528602010-09-21T15:15:57.000-06:002010-09-21T15:15:57.000-06:00I think you're over-thinking it. The mementos ...I think you're over-thinking it. The mementos wouldn't have to be that complex (x, y, currentBehavior, state, is that it?) for maybe 200 units? And I'm sure there's a billion different caching/pooling/whatever tricks they do in Starcraft for optimizations.johnlindquistnoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-74739336076064484802010-09-21T14:55:20.000-06:002010-09-21T14:55:20.000-06:00kind of noob question here - but for something lik...kind of noob question here - but for something like starcraft match replays - are you literally going into each object on screen and creating complex mementos like you are talking about below with command and state objects for every single character, building, event happening on screen? just thinking about that hurts my cpu - which is obviously a neuronet processor. <br><br>i feel like creating all those instances for all the possible things going on would just destroy flash if i were to have any type of complex game - is this something where id be better off using bits for simple 0 and 1 on and off states for certain things? or is it just best used when really really REALLY planned out well? - not even sure if i worded that correctly<br><br>tldr; complex saving in flash would murder cpu yes?Anthony Tripaldihttp://twitter.com/trippedoutnoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-66239324649998185402010-10-04T21:39:39.000-06:002010-10-04T21:39:39.000-06:00fantastic john... really helpfulfantastic john... really helpfulMike Wnoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-66789451469071445142010-09-19T09:51:36.000-06:002010-09-19T09:51:36.000-06:00Quick notes - You can easily combine the memento p...Quick notes - You can easily combine the memento pattern with command objects, state objects, etc from the previous tutorials for much more powerful save/restore functionality. Also, in Flash, mementos are perfect for saving state locally in SharedObjects or syncing state across networks, etc.johnlindquistnoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-10906042841431712692010-09-21T01:26:44.000-06:002010-09-21T01:26:44.000-06:00[...] PatternCraft – Memento Pattern [...][...] PatternCraft – Memento Pattern [...]PatternCraft – Visitor Pattern | johnlindquist.comhttp://johnlindquist.com/2010/09/21/patterncraft-visitor-pattern/noreply@blogger.comtag:blogger.com,1999:blog-36543495.post-826617712634946202010-10-13T04:25:09.000-06:002010-10-13T04:25:09.000-06:00[...] PatternCraft – Memento Pattern [...][...] PatternCraft – Memento Pattern [...]PatternCraft – Mediator Pattern vs. Framework Mediators | johnlindquist.comhttp://johnlindquist.com/2010/10/13/patterncraft-mediator-pattern-vs-framework-mediators/noreply@blogger.comtag:blogger.com,1999:blog-36543495.post-52479427329807671122010-09-22T09:51:16.000-06:002010-09-22T09:51:16.000-06:00wow, John!! Great classes of design patterns, espe...wow, John!! Great classes of design patterns, especially these one.Bruno Diashttp://twitter.com/diasbrunonoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-29046034701554610212010-09-21T15:32:56.000-06:002010-09-21T15:32:56.000-06:00yea, that tends to be the case (my over thinking) ...yea, that tends to be the case (my over thinking) but thanks for the quick response! love these tutorialsAnthony Tripaldihttp://twitter.com/trippedoutnoreply@blogger.comtag:blogger.com,1999:blog-36543495.post-71439001255113725682011-01-28T09:15:52.000-07:002011-01-28T09:15:52.000-07:00[...] comments PatternCraft – Memento Pattern | jo...[...] comments PatternCraft – Memento Pattern | johnlindquist.com on PatternCraft – State PatternPatternCraft – Visitor Pattern | johnlindquist.com on [...]PatternCraft – Command Pattern | johnlindquist.comhttp://johnlindquist.com/2010/09/09/patterncraft-command-pattern/noreply@blogger.comtag:blogger.com,1999:blog-36543495.post-37282824285681270472011-01-28T09:18:49.000-07:002011-01-28T09:18:49.000-07:00[...] comments PatternCraft – Command Pattern | jo...[...] comments PatternCraft – Command Pattern | johnlindquist.com on PatternCraft – Memento PatternPatternCraft – Memento Pattern | johnlindquist.com on PatternCraft – State [...]PatternCraft – Strategy Pattern | johnlindquist.comhttp://johnlindquist.com/2010/08/25/patterncraft-strategy-pattern/noreply@blogger.comtag:blogger.com,1999:blog-36543495.post-71596472219415018282011-01-29T00:00:14.000-07:002011-01-29T00:00:14.000-07:00[...] on Video Tutorial Requests for 2011?PatternC...[...] on Video Tutorial Requests for 2011?PatternCraft – Strategy Pattern | johnlindquist.com on PatternCraft – Memento PatternPatternCraft – Command Pattern | johnlindquist.com on PatternCraft – Memento PatternPatternCraft [...]PatternCraft – State Pattern | johnlindquist.comhttp://johnlindquist.com/2010/08/31/patterncraft-state-pattern/noreply@blogger.com