Command Pattern ã®è©±ã®ç¶ãã§ãã æåã«ãã®ã³ãã³ãå¦çã®ä»çµã¿ãä½ã£ãæãç§ã¯ã¸ã§ãå¦çã®æ¹å¼ã¨ãã¦ããã¥ã¼ããç¨ãã¾ããã人ã®è¡åã®ã¤ã¡ã¼ã¸ã§ãããæãé·ãå¾
ã£ããã®ãæåã«å¦çãããã¨ããæ¹å¼ã§ãã ããã§ãã°ããã¯æºè¶³ã ã£ããã§ãããã¡ãã£ã¨è¤éãªã¿ã¹ã¯ãæ°ãã«çµã¿å
¥ããæãã¹ã¿ãã¯ã欲ãããªã¨æãããã«ãªãã¾ããã ãã¥ã¼ãã¹ã¿ãã¯ã¨ããã®ã¯è¦ã¯é
åã§ãè¦ç´ ã追å ããæ¹å (push or unshift) ãåºå®ãã¦ããã°ãåå¾ã®æ¹æ³ (pop or shift) ã使ãåããã ãã§å®è£
ã§ãã¾ããã¤ã¾ãã Command.Center.Manager: get_command: function () { return this.list.shift(); }ãã®ã¡ã½ããã®ä¸èº«ãåãæ¿ããã ãã§æ¸ãããã§ãã ãã®ãããªå ´åã«ä½¿ãããã¿ã¼ã³ã Strategy
{{#tags}}- {{label}}
{{/tags}}