@@ -0,0 +1,1215 @@
+package com.rafkind.paintown.level;%0A%0Aimport com.rafkind.paintown.exception.LoadException;%0Aimport com.rafkind.paintown.Token;%0A%0Apublic abstract class Stimulation%7B%0A%09public Stimulation()%7B%0A%09%7D%0A%0A%09public static Stimulation load( Token t ) throws LoadException %7B%0A%09%09Token health = t.findToken( %22health%22 );%0A%09%09if ( health != null )%7B%0A%09%09%09return new HealthStimulation( health );%0A%09%09%7D%0A%0A%09%09return null;%0A%09%7D%0A%0A%09public abstract Stimulation copy();%0A%09public abstract Token toToken();%0A%0A%09public static class HealthStimulation extends Stimulation %7B%0A%09%09private int health;%0A%0A%09%09public HealthStimulation()%7B%0A%09%09%7D%0A%0A%09%09public HealthStimulation( Token t ) throws LoadException %7B%0A%09%09%09health = t.readInt( 0 );%0A%09%09%7D%0A%0A%09%09public HealthStimulation( Stimulation copy )%7B%0A%09%09%09this( (HealthStimulation) copy );%0A%09%09%7D%0A%0A%09%09public HealthStimulation( HealthStimulation copy )%7B%0A%09%09%09health = copy.health;%0A%09%09%7D%0A%0A%09%09public int getHealth()%7B%0A%09%09%09return health;%0A%09%09%7D%0A%0A%09%09public void setHealth( int s )%7B%0A%09%09%09health = s;%0A%09%09%7D%0A%0A%09%09public Stimulation copy()%7B%0A%09%09%09return new HealthStimulation( this );%0A%09%09%7D%0A%0A%09%09public Token toToken()%7B%0A%09%09%09Token t = new Token();%0A%0A%09%09%09t.addToken( new Token( %22stimulation%22 ) );%0A%09%09%09t.addToken( new String%5B%5D%7B %22health%22, String.valueOf( health ) %7D );%0A%0A%09%09%09return t;%0A%09%09%7D%0A%09%7D%0A%7D%0A

add stimulation class