diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-06-22 20:34:41 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-06-23 02:43:28 +0100 |
commit | 0e5d46227251053be2ac5fb92cba2427c9c42b20 (patch) | |
tree | 1e208212c0030d59dff08393d05c946a92c73429 /crawl-ref/source/MSVC/crawl.vcxproj | |
parent | 94225b818f4224d364b89af2accef481d8af3f80 (diff) | |
download | crawl-ref-0e5d46227251053be2ac5fb92cba2427c9c42b20.tar.gz crawl-ref-0e5d46227251053be2ac5fb92cba2427c9c42b20.zip |
Rework mon-pick algorithm as a class template
This enables the distributions to be easily used for picking over
enums other than monster_type, and even for arbitrary objects.
The new template is contained in random_pick. It can be used
simply by creating a random_picker<T> and calling its pick
method, or can be subclassed if more complex veto behaviour
is required.
Diffstat (limited to 'crawl-ref/source/MSVC/crawl.vcxproj')
-rw-r--r-- | crawl-ref/source/MSVC/crawl.vcxproj | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/MSVC/crawl.vcxproj b/crawl-ref/source/MSVC/crawl.vcxproj index a0456cb7e3..7c1cb59f9f 100644 --- a/crawl-ref/source/MSVC/crawl.vcxproj +++ b/crawl-ref/source/MSVC/crawl.vcxproj @@ -794,6 +794,7 @@ perl.exe "util/gen-cflg.pl" compflag.h "<UNKNOWN>" "<UNKNOWN>" <ClInclude Include="..\process_desc.h" />
<ClInclude Include="..\props.h" />
<ClInclude Include="..\quiver.h" />
+ <ClInclude Include="..\random-pick.h" /> <ClInclude Include="..\random-var.h" />
<ClInclude Include="..\random-weight.h" />
<ClInclude Include="..\random.h" />
|