Difference between revisions of "Implementing weather changes that affect animals"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "Will lead into Storms and fires")
 
Line 1: Line 1:
 
Will lead into Storms and fires
 
Will lead into Storms and fires
 +
Weather chance to be certain things (storm, rain, sun, neutral,)
 +
class weather
 +
==private==
 +
variability float
 +
stormradius float
 +
 +
==public==
 +
storm
 +
{
 +
}
 +
 +
rain
 +
{
 +
}
 +
 +
sun
 +
{
 +
}
 +
 +
neutral
 +
{
 +
  keep same
 +
}

Revision as of 12:48, 14 February 2017

Will lead into Storms and fires Weather chance to be certain things (storm, rain, sun, neutral,) class weather

private

variability float stormradius float

public

storm { }

rain { }

sun { }

neutral {

  keep same

}