/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string abbr = null, string axis = null, string headers = null, Scope?scope = null, int?rowspan = null, int?colspan = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, Align?align = null, char? @char = null, Length charoff = null, Valign?valign = null ) { Abbr = abbr; Axis = axis; Headers = headers; Scope = scope; RowSpan = rowspan; ColSpan = colspan; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; Align = align; Char = @char; CharOff = charoff; Valign = valign; return(this); }
private void UpdatePlayer(int y, int x) { if (/*_alive && */ _control.HasValue) { var y1 = y; var x1 = x; switch (_control.Value) { case Dir.UP: y1--; break; case Dir.RIGHT: x1++; break; case Dir.DOWN: y1++; break; case Dir.LEFT: x1--; break; } if (_map[y1][x1] == ' ' || WalkInto(y1, x1, _control.Value)) { Move(y, x, y1, x1); player_y = y1; player_x = x1; } _control = null; } }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( Shape?shape = null, Length[] coords = null, string href = null, NoHref?nohref = null, Target target = null, string alt = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, char?accesskey = null, int?tabindex = null, string onfocus = null, string onblur = null ) { Shape = shape; Coords = coords; Href = href; NoHref = nohref; Target = target; Alt = alt; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; AccessKey = accesskey; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; return(this); }
private void ProcessInput() { ConsoleKey key; if (input.TryTake(out key)) { switch (key) { case ConsoleKey.W: dir = Dir.Up; break; case ConsoleKey.A: dir = Dir.Left; break; case ConsoleKey.S: dir = Dir.Down; break; case ConsoleKey.D: dir = Dir.Right; break; case ConsoleKey.Escape: Environment.Exit(0); break; } } }
private void Update() { if (dir != Dir.None) { switch (dir) { case Dir.Up: y = Math.Max(0, y - 1); break; case Dir.Left: x = Math.Max(0, x - 1); break; case Dir.Down: y = Math.Min(maxY, y + 1); break; case Dir.Right: x = Math.Max(maxX, x + 1); break; } dir = Dir.None; } }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( Charset charset = null, string href = null, LangCode hreflang = null, Target target = null, MimeType type = null, LinkType?rel = null, LinkType?rev = null, Media?media = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Charset = charset; Href = href; HrefLang = hreflang; Target = target; Type = type; Rel = rel; Rev = rev; Media = media; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string name = null, string value = null, ButtonType?type = null, Disabled?disabled = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, char?accesskey = null, int?tabindex = null, string onfocus = null, string onblur = null ) { Name = name; Value = value; Type = type; Disabled = disabled; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; AccessKey = accesskey; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string src = null, string alt = null, string longdesc = null, Length height = null, Length width = null, string usemap = null, IsMap?ismap = null, string id = null, string name = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Src = src; Alt = alt; LongDesc = longdesc; Height = height; Width = width; UseMap = usemap; IsMap = ismap; Id = id; Name = name; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string name = null, int?size = null, Multiple?multiple = null, Disabled?disabled = null, int?tabindex = null, string onfocus = null, string onblur = null, string onchange = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Name = name; Size = size; Multiple = multiple; Disabled = disabled; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; OnChange = onchange; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
private Program() { input = new BlockingCollection <ConsoleKey>(); inputThread = new Thread(ReadInput); maxX = 10; maxY = 10; x = 5; y = 5; dir = Dir.None; inputThread.Start(); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string summary = null, Length width = null, int?border = null, Frame?frame = null, Rules?rules = null, Length cellspacing = null, Length cellpadding = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Summary = summary; Width = width; Border = border; Frame = frame; Rules = rules; CellSpacing = cellspacing; CellPadding = cellpadding; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( LangCode lang = null, string xmllang = null, Dir? dir = null ) { Lang = lang; XmlLang = xmllang; Dir = dir; return this; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( LangCode lang = null, string xmllang = null, Dir?dir = null ) { Lang = lang; XmlLang = xmllang; Dir = dir; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( int?span = null, MultiLength width = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, Align?align = null, char? @char = null, Length charoff = null, Valign?valign = null ) { Span = span; Width = width; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; Align = align; Char = @char; CharOff = charoff; Valign = valign; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string profile = null, LangCode lang = null, string xmllang = null, Dir?dir = null ) { Profile = profile; Lang = lang; XmlLang = xmllang; Dir = dir; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string profile = null, LangCode lang = null, string xmllang = null, Dir? dir = null ) { Profile = profile; Lang = lang; XmlLang = xmllang; Dir = dir; return this; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string @for = null, char?accesskey = null, string onfocus = null, string onblur = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { For = @for; AccessKey = accesskey; OnFocus = onfocus; OnBlur = onblur; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( Selected?selected = null, Disabled?disabled = null, string label = null, string value = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Selected = selected; Disabled = disabled; Label = label; Value = value; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
public override void update() { base.update(); if (!this.alive || this.control == null) { return; } var to = this.point.step(this.control.Value); var target = this.world.get(to); if (target == null || target.walk_into(this.control.Value)) { this.move(to); } this.control = null; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string cite = null, DateTime?datetime = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Cite = cite; DateTime = datetime; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
public Dir EndVoting() { SocketConnection.Instance.RemoveReponder(this); StartCoroutine(_endVoting()); //Get the most voted on direction Dir?bestdir = GetHighestVote(); //clear all directions foreach (GameObject obj in labelDictionary.Values) { Destroy(obj); } votesDictionary.Clear(); labelDictionary.Clear(); return((Dir)bestdir); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( HttpEquiv httpequiv = null, MetaName name = null, string content = null, string scheme = null, LangCode lang = null, string xmllang = null, Dir?dir = null ) { HttpEquiv = httpequiv; Name = name; Content = content; Scheme = scheme; Lang = lang; XmlLang = xmllang; Dir = dir; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( MimeType type = null, Media? media = null, string title = null, string xmlspace = null, LangCode lang = null, string xmllang = null, Dir? dir = null ) { Type = type; Media = media; Title = title; XmlSpace = xmlspace; Lang = lang; XmlLang = xmllang; Dir = dir; return this; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( MimeType type = null, Media?media = null, string title = null, string xmlspace = null, LangCode lang = null, string xmllang = null, Dir?dir = null ) { Type = type; Media = media; Title = title; XmlSpace = xmlspace; Lang = lang; XmlLang = xmllang; Dir = dir; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( HttpEquiv httpequiv = null, MetaName name = null, string content = null, string scheme = null, LangCode lang = null, string xmllang = null, Dir? dir = null ) { HttpEquiv = httpequiv; Name = name; Content = content; Scheme = scheme; Lang = lang; XmlLang = xmllang; Dir = dir; return this; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( LangCode lang = null, string xmllang = null, Dir?dir = null, string id = null, string @class = null, string style = null, string title = null ) { Lang = lang; XmlLang = xmllang; Dir = dir; Id = id; Class = @class; Style = style; Title = title; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string name = null, int?rows = null, int?cols = null, Disabled?disabled = null, ReadOnly? @readonly = null, string onselect = null, string onchange = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, char?accesskey = null, int?tabindex = null, string onfocus = null, string onblur = null ) { Name = name; Rows = rows; Cols = cols; Disabled = disabled; ReadOnly = @readonly; OnSelect = onselect; OnChange = onchange; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; AccessKey = accesskey; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( InputType?type = null, string name = null, string value = null, Checked? @checked = null, Disabled?disabled = null, ReadOnly? @readonly = null, int?size = null, int?maxlength = null, string src = null, string alt = null, string usemap = null, IsMap?ismap = null, string onselect = null, string onchange = null, MimeType[] accept = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, char?accesskey = null, int?tabindex = null, string onfocus = null, string onblur = null ) { Type = type; Name = name; Value = value; Checked = @checked; Disabled = disabled; ReadOnly = @readonly; Size = size; MaxLength = maxlength; Src = src; Alt = alt; UseMap = usemap; IsMap = ismap; OnSelect = onselect; OnChange = onchange; Accept = accept; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; AccessKey = accesskey; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; return(this); }
public void control(Dir?dir) { _control = dir.HasValue && dir.Value != Dir.NONE ? dir : null; }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( Charset charset = null, MimeType type = null, string name = null, string href = null, LangCode hreflang = null, Target target = null, LinkType?rel = null, LinkType?rev = null, Shape?shape = null, Length[] coords = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null, char?accesskey = null, int?tabindex = null, string onfocus = null, string onblur = null ) { Charset = charset; Type = type; Name = name; Href = href; HrefLang = hreflang; Target = target; Rel = rel; Rev = rev; Shape = shape; Coords = coords; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; AccessKey = accesskey; TabIndex = tabindex; OnFocus = onfocus; OnBlur = onblur; return(this); }
/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( Declare?declare = null, string classid = null, string codebase = null, string data = null, MimeType type = null, MimeType codetype = null, string archive = null, string standby = null, Length height = null, Length width = null, string usemap = null, string name = null, int?tabindex = null, string id = null, string @class = null, string style = null, string title = null, LangCode lang = null, string xmllang = null, Dir?dir = null, string onclick = null, string ondblclick = null, string onmousedown = null, string onmouseup = null, string onmouseover = null, string onmousemove = null, string onmouseout = null, string onkeypress = null, string onkeydown = null, string onkeyup = null ) { Declare = declare; ClassId = classid; CodeBase = codebase; Data = data; Type = type; CodeType = codetype; Archive = archive; StandBy = standby; Height = height; Width = width; UseMap = usemap; Name = name; TabIndex = tabindex; Id = id; Class = @class; Style = style; Title = title; Lang = lang; XmlLang = xmllang; Dir = dir; OnClick = onclick; OnDblClick = ondblclick; OnMouseDown = onmousedown; OnMouseUp = onmouseup; OnMouseOver = onmouseover; OnMouseMove = onmousemove; OnMouseOut = onmouseout; OnKeyPress = onkeypress; OnKeyDown = onkeydown; OnKeyUp = onkeyup; return(this); }
public Command(ActionType t, Dir d1, Dir d2) { this.actionType = t; this.dir1 = d1; this.dir2 = d2; }
public Command(Dir d) { this.actionType = ActionType.Move; this.dir1 = d; this.dir2 = null; }