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)

FileSize
vtable/README.txt513 B
vtable/vtable.cpp1.9 KB
vtable/vtable.h541 B
vtable/vtable_test.cpp1.2 KB

Site Stats

Snippets: 1791
Codebases: 571