<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for BrainBlitz.org</title>
	<atom:link href="http://www.brainblitz.org/anthony/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brainblitz.org/anthony</link>
	<description>The Blog About Nothinginparticular</description>
	<lastBuildDate>Fri, 05 Mar 2010 21:44:41 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on AS3 A* pathfinding class by Anthony</title>
		<link>http://www.brainblitz.org/anthony/posts/155/comment-page-1#comment-3434</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Fri, 05 Mar 2010 21:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=155#comment-3434</guid>
		<description>Hi Lee,
If you only want the &quot;perpendicularly adjacent&quot; cells, it&#039;s probably more efficient to manually address the cells rather than use the loop with all of the conditionals. So it&#039;d be something like:

var arryPtr:Object;	

if(xx - 1 &gt;= 0) {
	arryPtr = mapArray[xx - 1][yy + 0]; //cell to the left
	if(arryPtr.cellType != CELL_FILLED &amp;&amp; closedList.indexOf(arryPtr) == -1) {
		adjacentCell.push(arryPtr);
	}
}

if(yy - 1 &gt;= 0) {
	arryPtr = mapArray[xx + 0][yy - 1]; //cell above
	if(arryPtr.cellType != CELL_FILLED &amp;&amp; closedList.indexOf(arryPtr) == -1) {
		adjacentCell.push(arryPtr);
	}
}
//... etc, for cells to the right and below

Of course, your way works! 

If you actually need a good astar class, by the way, take a look at http://www.dauntless.be/astar/ . I haven&#039;t actually used it, but from the demo, it&#039;s far more mature, and can be set to disallow diagonal. It also handles the case of &quot;diagonal allowed unless adjacent to an unwalkable cell,&quot; which is super handy because when you&#039;ve got a little guy following the path, you might want diagonal, but obviously don&#039;t want him cutting across the corner of, say, a tree!</description>
		<content:encoded><![CDATA[<p>Hi Lee,<br />
If you only want the &#8220;perpendicularly adjacent&#8221; cells, it&#8217;s probably more efficient to manually address the cells rather than use the loop with all of the conditionals. So it&#8217;d be something like:</p>
<p>var arryPtr:Object;	</p>
<p>if(xx &#8211; 1 >= 0) {<br />
	arryPtr = mapArray[xx - 1][yy + 0]; //cell to the left<br />
	if(arryPtr.cellType != CELL_FILLED &#038;&#038; closedList.indexOf(arryPtr) == -1) {<br />
		adjacentCell.push(arryPtr);<br />
	}<br />
}</p>
<p>if(yy &#8211; 1 >= 0) {<br />
	arryPtr = mapArray[xx + 0][yy - 1]; //cell above<br />
	if(arryPtr.cellType != CELL_FILLED &#038;&#038; closedList.indexOf(arryPtr) == -1) {<br />
		adjacentCell.push(arryPtr);<br />
	}<br />
}<br />
//&#8230; etc, for cells to the right and below</p>
<p>Of course, your way works! </p>
<p>If you actually need a good astar class, by the way, take a look at <a href="http://www.dauntless.be/astar/" rel="nofollow">http://www.dauntless.be/astar/</a> . I haven&#8217;t actually used it, but from the demo, it&#8217;s far more mature, and can be set to disallow diagonal. It also handles the case of &#8220;diagonal allowed unless adjacent to an unwalkable cell,&#8221; which is super handy because when you&#8217;ve got a little guy following the path, you might want diagonal, but obviously don&#8217;t want him cutting across the corner of, say, a tree!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AS3 A* pathfinding class by Lee Probert</title>
		<link>http://www.brainblitz.org/anthony/posts/155/comment-page-1#comment-3433</link>
		<dc:creator>Lee Probert</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=155#comment-3433</guid>
		<description>whoops ... should have been : &lt;code&gt;isDiagonal = ((xx==-1 &#124;&#124; xx==1) &amp;&amp; (yy==-1 &#124;&#124; yy==1));&lt;/code&gt; ... sorry.</description>
		<content:encoded><![CDATA[<p>whoops &#8230; should have been : <code>isDiagonal = ((xx==-1 || xx==1) &amp;&amp; (yy==-1 || yy==1));</code> &#8230; sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AS3 A* pathfinding class by Lee Probert</title>
		<link>http://www.brainblitz.org/anthony/posts/155/comment-page-1#comment-3432</link>
		<dc:creator>Lee Probert</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=155#comment-3432</guid>
		<description>I think this would detect diagonal adjacent cells : 
&lt;code&gt;isDiagonal = ((xx==-1 &#124;&#124; xx==1) &amp;&amp; (yy==-1 &amp;&amp; yy==1));&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I think this would detect diagonal adjacent cells :<br />
<code>isDiagonal = ((xx==-1 || xx==1) &amp;&amp; (yy==-1 &amp;&amp; yy==1));</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AS3 A* pathfinding class by Lee Probert</title>
		<link>http://www.brainblitz.org/anthony/posts/155/comment-page-1#comment-3431</link>
		<dc:creator>Lee Probert</dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=155#comment-3431</guid>
		<description>Hi there. How can I prevent it from pathfinding diagonally?

I&#039;m guessing it&#039;s part of this ...

&lt;code&gt;if(currentCell.x + xx &gt;= 0 &amp;&amp; currentCell.y + yy &gt;= 0 &amp;&amp; currentCell.x + xx &lt; gridWidth &amp;&amp; currentCell.y + yy &lt; gridHeight) &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi there. How can I prevent it from pathfinding diagonally?</p>
<p>I&#8217;m guessing it&#8217;s part of this &#8230;</p>
<p><code>if(currentCell.x + xx &gt;= 0 &amp;&amp; currentCell.y + yy &gt;= 0 &amp;&amp; currentCell.x + xx &lt; gridWidth &amp;&amp; currentCell.y + yy &lt; gridHeight) </code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BoxCAD Retirement and Source by Anthony</title>
		<link>http://www.brainblitz.org/anthony/posts/92/comment-page-1#comment-3430</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Fri, 12 Feb 2010 09:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=92#comment-3430</guid>
		<description>It&#039;s not. Pretty much a pipe-dream at the moment.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not. Pretty much a pipe-dream at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Provigil vs. Adderall by Susan</title>
		<link>http://www.brainblitz.org/anthony/posts/43/comment-page-1#comment-3429</link>
		<dc:creator>Susan</dc:creator>
		<pubDate>Mon, 01 Feb 2010 22:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://brainblitz.org/anthony/posts/43#comment-3429</guid>
		<description>Hello all,

I have fibromyalgia and excessive sleepiness/sleep apnea. My dr prescribed Provigil and hydrocodone for the pain and sleep issues, and after some tinkering with the dosages of both I&#039;ve found pv works beautifully for the most part. I take 200 mg in the morning, and another 100mg in the early afternoon. As long as I drink plenty of fluids and eat a decent amount of calories (not too much or too little) pv is a wonder drug. The one major caveat to pv is that you can&#039;t really take caffeine with it unless you wait several hours. It wrecks the functionality of the drug and may give you a headache.

When the pv doesn&#039;t work so well, I take a mild adrenal stimulant prescribed by my acupuncturist, who I see once a month.

As far as the weight gain mentioned by the narcoleptic contributor goes, I combated this with a program on my iPhone called Lose It! It&#039;s a simple calorie counter app on the phone, and I think it may have an online component for those without iPhones. You choose whether you think you can lose 1/2 a pound, 1 pound or 2 pounds per week. I chose the lowest setting (1/2 lb per week) and after a month of struggling to get my eating under control, it started working. I&#039;ve lost 15 pounds since June 2009 (I&#039;m writing this on Feb 1 2010) and will keep going until I lose all of the weight (35 lbs total) I put on over the past 2 years. 

The last thing I do is a light exercise called Classical Stretch With Miranda Esmonde White. She&#039;s on PBS, and the exercises are gentle but intelligent; I became stronger and got back the balance that the fibromyalgia threatened to do away with.

My blog, Touching An American Sky, covers everything I wrote about here. I also cover a lot of other stuff, like arts, culture and travel, but getting my health back is a huge part of my life right now.

Good luck to everyone here, no matter your reason for seeking a good stimulant!</description>
		<content:encoded><![CDATA[<p>Hello all,</p>
<p>I have fibromyalgia and excessive sleepiness/sleep apnea. My dr prescribed Provigil and hydrocodone for the pain and sleep issues, and after some tinkering with the dosages of both I&#8217;ve found pv works beautifully for the most part. I take 200 mg in the morning, and another 100mg in the early afternoon. As long as I drink plenty of fluids and eat a decent amount of calories (not too much or too little) pv is a wonder drug. The one major caveat to pv is that you can&#8217;t really take caffeine with it unless you wait several hours. It wrecks the functionality of the drug and may give you a headache.</p>
<p>When the pv doesn&#8217;t work so well, I take a mild adrenal stimulant prescribed by my acupuncturist, who I see once a month.</p>
<p>As far as the weight gain mentioned by the narcoleptic contributor goes, I combated this with a program on my iPhone called Lose It! It&#8217;s a simple calorie counter app on the phone, and I think it may have an online component for those without iPhones. You choose whether you think you can lose 1/2 a pound, 1 pound or 2 pounds per week. I chose the lowest setting (1/2 lb per week) and after a month of struggling to get my eating under control, it started working. I&#8217;ve lost 15 pounds since June 2009 (I&#8217;m writing this on Feb 1 2010) and will keep going until I lose all of the weight (35 lbs total) I put on over the past 2 years. </p>
<p>The last thing I do is a light exercise called Classical Stretch With Miranda Esmonde White. She&#8217;s on PBS, and the exercises are gentle but intelligent; I became stronger and got back the balance that the fibromyalgia threatened to do away with.</p>
<p>My blog, Touching An American Sky, covers everything I wrote about here. I also cover a lot of other stuff, like arts, culture and travel, but getting my health back is a huge part of my life right now.</p>
<p>Good luck to everyone here, no matter your reason for seeking a good stimulant!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BoxCAD Retirement and Source by Jason</title>
		<link>http://www.brainblitz.org/anthony/posts/92/comment-page-1#comment-3427</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 27 Jan 2010 09:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/?p=92#comment-3427</guid>
		<description>How is your rebuild going?</description>
		<content:encoded><![CDATA[<p>How is your rebuild going?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tetris Guts (a tutorial on Flash game programming (AS3)) by yyzz990</title>
		<link>http://www.brainblitz.org/anthony/posts/46/comment-page-1#comment-3426</link>
		<dc:creator>yyzz990</dc:creator>
		<pubDate>Sat, 09 Jan 2010 03:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainblitz.org/anthony/posts/46#comment-3426</guid>
		<description>Thanks for you code,it is a good tutorial for me</description>
		<content:encoded><![CDATA[<p>Thanks for you code,it is a good tutorial for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Provigil vs. Adderall by Venson</title>
		<link>http://www.brainblitz.org/anthony/posts/43/comment-page-1#comment-3425</link>
		<dc:creator>Venson</dc:creator>
		<pubDate>Thu, 03 Dec 2009 18:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://brainblitz.org/anthony/posts/43#comment-3425</guid>
		<description>I was just diagnosed with Narcolepsy and my doctor perscribe Provigil.  I have not taken it yet and was curious as to how it might effect me.  I have generally always been blah during the day, most days.  Do to this I have gained so much wieght and now am at my heaviest I&#039;ve ever been.  
  At first, I tried Phentermine (an appetite supressent/stimulant) and I felt great - minus the nausea at times.  But I didn&#039;t know that I actually had Narcolepsy until 10am this morning after recieving my sleep latency test results.

  I am looking forward in seeing how Provigil works for me.</description>
		<content:encoded><![CDATA[<p>I was just diagnosed with Narcolepsy and my doctor perscribe Provigil.  I have not taken it yet and was curious as to how it might effect me.  I have generally always been blah during the day, most days.  Do to this I have gained so much wieght and now am at my heaviest I&#8217;ve ever been.<br />
  At first, I tried Phentermine (an appetite supressent/stimulant) and I felt great &#8211; minus the nausea at times.  But I didn&#8217;t know that I actually had Narcolepsy until 10am this morning after recieving my sleep latency test results.</p>
<p>  I am looking forward in seeing how Provigil works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adderall &#8211; Just over a Year by Anthony</title>
		<link>http://www.brainblitz.org/anthony/posts/44/comment-page-1#comment-3424</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 02 Nov 2009 23:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://brainblitz.org/anthony/posts/44#comment-3424</guid>
		<description>Ask her about Vyvanse - it&#039;s a safer form of the same drug. Or try another doctor/psych.</description>
		<content:encoded><![CDATA[<p>Ask her about Vyvanse &#8211; it&#8217;s a safer form of the same drug. Or try another doctor/psych.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
