コード例 #1
0
ファイル: World.cs プロジェクト: janmagnet/CloudWars
 public World(GameSettings settings, IInputFactory inputFactory, IGraphicManager graphicManager)
 {
     iteration           = 0;
     this.inputFactory   = inputFactory;
     this.graphicManager = graphicManager;
     RainClouds          = new List <RainCloud>();
     Thunderstorms       = new List <Thunderstorm>();
     Clouds   = new List <Cloud>();
     Settings = settings;
 }
コード例 #2
0
ファイル: Cloud.cs プロジェクト: henrikno/CloudWars
 protected Cloud(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType)
 {
     this.world = world;
     this.vapor = vapor;
     this.graphicsHandler = graphicsHandler;
     velocity = new Vector();
     position = new Vector();
     shape = graphicsHandler.InsertShape(shapeType);
     random = new Random(DateTime.UtcNow.Millisecond);
 }
コード例 #3
0
ファイル: Cloud.cs プロジェクト: janmagnet/CloudWars
 protected Cloud(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType)
 {
     this.world           = world;
     this.vapor           = vapor;
     this.graphicsHandler = graphicsHandler;
     velocity             = new Vector();
     position             = new Vector();
     shape  = graphicsHandler.InsertShape(shapeType);
     random = new Random(DateTime.UtcNow.Millisecond);
 }
コード例 #4
0
ファイル: World.cs プロジェクト: henrikno/CloudWars
 public World(GameSettings settings, IInputFactory inputFactory, IGraphicManager graphicManager)
 {
     iteration = 0;
     this.inputFactory = inputFactory;
     this.graphicManager = graphicManager;
     RainClouds = new List<RainCloud>();
     Thunderstorms = new List<Thunderstorm>();
     Clouds = new List<Cloud>();
     Settings = settings;
 }
コード例 #5
0
ファイル: Thunderstorm.cs プロジェクト: janmagnet/CloudWars
 public Thunderstorm(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType,
                     IInputHandler inputHandler) : base(world, vapor, graphicsHandler, shapeType)
 {
     this.inputHandler = inputHandler;
 }
コード例 #6
0
ファイル: Thunderstorm.cs プロジェクト: henrikno/CloudWars
 public Thunderstorm(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType,
                     IInputHandler inputHandler)
     : base(world, vapor, graphicsHandler, shapeType)
 {
     this.inputHandler = inputHandler;
 }
コード例 #7
0
ファイル: RainCloud.cs プロジェクト: henrikno/CloudWars
 public RainCloud(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType)
     : base(world, vapor, graphicsHandler, shapeType)
 {
 }
コード例 #8
0
 public RainCloud(World world, float vapor, IGraphicManager graphicsHandler, ShapeType shapeType)
     : base(world, vapor, graphicsHandler, shapeType)
 {
 }