Archived
1
0

+ introduced "ismale"-attribute for humans

* humans can only mate with someone from the other sex
x bugfixing for Windows (FontRendering setting)
* some optimizations
This commit is contained in:
2009-01-30 13:00:32 +01:00
parent fa5ad89d6b
commit 422210793e
5 changed files with 21 additions and 16 deletions
+6 -5
View File
@@ -1,4 +1,5 @@
using System;
using System;
using System.Collections;
namespace vampi
{
@@ -6,7 +7,8 @@ namespace vampi
protected Spielfeld sfeld;
protected int typ;
protected int maxAge = 80;
protected int age = -1;
protected int age = -1;
public int Age {
get { return this.age; }
}
@@ -18,8 +20,8 @@ namespace vampi
public Spielfigur(Spielfeld sfeld) {
sfeld.Sfigur = this;
this.sfeld = sfeld;
}
}
public virtual void runStep() {
if (this.age != -1) {
this.age++;
@@ -33,5 +35,4 @@ namespace vampi
this.sfeld.Sfigur = null;
}
}
}