+ 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:
+6
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user