public Effect(GameTime gameTime, Vector2 position, EffectPosition height, VGame.Shape shape) { _position = position; Height = height; Shape = shape; ExpirationTime = gameTime.TotalGameTime + Duration; }
void Awake() { Instance = this; GameLogical = VGame.Instance; GameRepresent = new VRepresent(); }
public static void PrintGameBoard() { MGame Game = MGame.Instance; int score = Game.getScore(); int lifes = Game.Snake.Nblife; VGame.Print(GameBoard, Game.Map.Height, Game.Map.Width, score, lifes); }
private static void _Spin(Regulus.Utility.Console.IViewer view, VGame.CLR.Wheel wheel) { var ir = new VGame.CLR.Input { Switch = 1, RunTime = 1, GameRate = 1, MaxBet = 10, MinBet = 1, Bet = 9, GameUndulate = 8, Line = 7, RecCycle = 6, WupCondi1 = 1, WupCondi2 = 1, WupRate = 1, Free = 0, Fever = 0, WinSet = 1 }; view.WriteLine("嘗試讀取Input.txt..."); if(System.IO.File.Exists("Input.txt")) { view.WriteLine("成功."); var readed = System.IO.File.ReadAllText("Input.txt"); ir = Newtonsoft.Json.JsonConvert.DeserializeObject<VGame.CLR.Input>(readed); } else { view.WriteLine("失敗."); view.WriteLine("建立預設Input.txt ..."); System.IO.File.WriteAllText("Input.txt", Newtonsoft.Json.JsonConvert.SerializeObject(ir)); } var output = wheel.Spin(ir); var guid = System.Guid.NewGuid(); var inputPath = $"Input{guid}.txt"; view.WriteLine(inputPath); System.IO.File.WriteAllText(inputPath , Newtonsoft.Json.JsonConvert.SerializeObject(ir)); var outputPath = $"Output{guid}.txt"; view.WriteLine(outputPath); System.IO.File.WriteAllText(outputPath, Newtonsoft.Json.JsonConvert.SerializeObject(output)); }
public Actor(Unit unit, VGame.Shape shape) { Unit = unit; Shape = shape; }