<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4258" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Direction</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4258</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=24100#p24100</link>
   <description>There&#039;s no report button? Come to think of it I honestly can&#039;t say whether there ever was one or not, but I don&#039;t see one myself. I&#039;m the admin though so it makes little sense for me to have one :P In any case the spam post has been dealt with, including sending it to Akismet for processing.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=24100#p24100</guid>
   <pubDate>Thu, 3 Aug 2023 23:08:50 CDT</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=24099#p24099</link>
   <description>Good to see that link spammers are still at it. Am I missing something or is there literally no way to report spammers on this forum now?  :facepalm: </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=24099#p24099</guid>
   <pubDate>Sun, 30 Jul 2023 21:10:49 CDT</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19916#p19916</link>
   <description>Yes, I&#039;m referring to more methods on the bitvector class, and indeed even encoding the flagarray as one of the template parameters to the bitvector type. So it would be something like: [code] // declare the type typedef bitset&amp;lt;123, mobflag_names&amp;gt; mob_flag_set; // create an object of this type mob_flag_set myMobFlags; // set a flag by name myMobFlags.set(&amp;quot;guardian&amp;quot;); [/code]</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19916#p19916</guid>
   <pubDate>Sat, 30 Jan 2010 02:29:16 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (David Haley)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19915#p19915</link>
   <description>[quote=David Haley]I haven&#039;t looked at the one in AFKMud[/quote] I&#039;m talking about this template: [code]template &amp;lt; size_t N &amp;gt; char *bitset_string( bitset &amp;lt; N &amp;gt; bits, const char *flagarray[] ) { static char buf[MSL]; size_t x; buf[0] = &#039;\0&#039;; for( x = 0; x &amp;lt; bits.size(  ); ++x ) { if( bits.test( x ) ) { mudstrlcat( buf, flagarray[x], MSL ); // don&#039;t catenate a blank if the last char is blank  --Gorog  if( buf[0] != &#039;\0&#039; &amp;amp;&amp;amp; &#039; &#039; </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19915#p19915</guid>
   <pubDate>Fri, 29 Jan 2010 23:48:09 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19899#p19899</link>
   <description>link should be working now</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19899#p19899</guid>
   <pubDate>Fri, 29 Jan 2010 01:57:35 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (kiasyn)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19888#p19888</link>
   <description>I haven&#039;t looked at the one in AFKMud, but I was thinking something along the lines of being able to set flags [i]on the bitvector[/i] by name [i]or[/i] by number. It would also make stringification easier, by returning a vector of strings that are set that the caller can then join as appropriate (using commas, spaces, whatever). The general idea is to encode the size and the associated strings with the template. A nice consequence of this is that bitvectors of the same size but different flag n</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19888#p19888</guid>
   <pubDate>Thu, 28 Jan 2010 16:26:40 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (David Haley)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19887#p19887</link>
   <description>How exactly is &amp;quot;automatic string conversion&amp;quot; being defined? A template that does what flag_string does? If so, the one in AFKMud would suit this just fine. I can&#039;t see memory usage being a deciding factor. Especially since I&#039;ve not seen any indication in my own experience that std::bitset is any more or less of a memory hog than anything else. I think you&#039;re going to find that just including the STL in general is what&#039;s doing most of the memory hogging. You&#039;ll get that with std::string or std</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19887#p19887</guid>
   <pubDate>Thu, 28 Jan 2010 16:17:46 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19882#p19882</link>
   <description>After working in depth with std::bitset. It won&#039;t be used in these bases without a serious examination as to whether it&#039;s pros outweigh it&#039;s cons. It definitely leaves a little to be desired, as David Said, automatic string conversion would be nice. But it also appears to use more memory then an extended bitvector. Might talk more later, defending human colonies in Mass Effect 2 right now... Oh, and drooling. Lots of drooling.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19882#p19882</guid>
   <pubDate>Thu, 28 Jan 2010 15:36:39 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (InfiniteAxis)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19876#p19876</link>
   <description>I would think so, yes. It&#039;s an encapsulation of a bit vector that is created with arbitrary size. If you want a topical example of writing &amp;quot;OOP&amp;quot; in C, by the way, I uploaded a [url=http://www.mudbytes.net/index.php?a=files&amp;amp;s=viewfile&amp;amp;fid=2640]C implementation of arbitrary sized bitvectors[/url] to MudBytes a while ago. I&#039;ll mention again that I really don&#039;t think that std::bitset on its own is an appropriate solution; it&#039;s missing a few awfully nice features like automatic string conversio</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19876#p19876</guid>
   <pubDate>Thu, 28 Jan 2010 14:33:41 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (David Haley)</author>
  </item>
  <item>
   <title>Direction</title>
   <link>https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19874#p19874</link>
   <description>Is std::bitset something a C++ nub like me could figure out pretty easily?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/direction-4258/&amp;p=19874#p19874</guid>
   <pubDate>Thu, 28 Jan 2010 13:46:31 CST</pubDate>
   <category>General Discussions</category>
   <author>nobody@example.com (Keirath)</author>
  </item>
 </channel>
</rss>
