vtable.tar.gz
snippets · 1.6 KB · 2010-03-30
vtable: a simple virtual table class (C++).
Download « Back to the snippets list
vtable/README.txt
Even simpler than my last snippet, this is a class that will act as an array of arbitrary stats, generating a value for the stat based on a set of increment data and the position within the table, using the [] operator. The purpose is to save you as a developer the time and monotony of laying out, for example, an array of 255 strength-based damroll bonuses. The included test program should be explanation enough on how to use it. The included code is released as public domain. - Scott V. Fritz Jr.
Archive contents (4 files)
| File | Size |
|---|---|
| vtable/README.txt | 513 B |
| vtable/vtable.cpp | 1.9 KB |
| vtable/vtable.h | 541 B |
| vtable/vtable_test.cpp | 1.2 KB |