<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>octech</author_name>
  <author_url>https://blog.hatena.ne.jp/octech/</author_url>
  <blog_title>octech</blog_title>
  <blog_url>https://octech.hatenadiary.org/</blog_url>
  <categories>
    <anon>AS3.0</anon>
    <anon>Flash</anon>
  </categories>
  <description>Graphics.moveTo(), Graphics.lineTo()の切り替えを、if分を使わずにStateパターンを使って実装するという話。 http://blog.boreal-kiss.com/2008/10/25190055.html この二つの切り替えは確かに面倒なので、ここでStateパターンの使いどころとしてなるほど便利だなー、と思った。 しかし、この実装の仕方はちょっとおかしい。 IStateクラスというインターフェイスクラスを作り、それをMoveToStateクラスでimplements、そのMoveToStateクラスを派生させてLineToStateクラスでしているの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foctech.hatenadiary.org%2Fentry%2F20081216%2F1229404248&quot; title=&quot;あるStateパターンの実装について - octech&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-16 14:10:48</published>
  <title>あるStateパターンの実装について</title>
  <type>rich</type>
  <url>https://octech.hatenadiary.org/entry/20081216/1229404248</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
