author | alpar |
Sat, 13 Nov 2004 12:53:28 +0000 | |
changeset 986 | e997802b855c |
parent 960 | 908a1a6f0752 |
child 999 | 5c846ec3f787 |
permissions | -rw-r--r-- |
ladanyi@960 | 1 |
#include "simann.h" |
ladanyi@960 | 2 |
|
ladanyi@960 | 3 |
using namespace lemon; |
ladanyi@960 | 4 |
|
ladanyi@960 | 5 |
class MyEntity { |
ladanyi@960 | 6 |
public: |
ladanyi@960 | 7 |
double mutate() { return 10.0; } |
ladanyi@960 | 8 |
void revert() {} |
ladanyi@960 | 9 |
}; |
ladanyi@960 | 10 |
|
ladanyi@960 | 11 |
int main() { |
ladanyi@960 | 12 |
SimAnn<MyEntity> simann; |
ladanyi@960 | 13 |
SimpleController ctrl; |
ladanyi@960 | 14 |
simann.setController(ctrl); |
ladanyi@960 | 15 |
MyEntity ent; |
ladanyi@960 | 16 |
simann.setEntity(ent); |
ladanyi@960 | 17 |
simann.run(); |
ladanyi@960 | 18 |
} |