전체 글
-
Kill The Demon_개인정보처리방침카테고리 없음 2022. 10. 14. 13:21
('https://thinkingjin.tistory.com/'이하 '킹진 블로그')은(는) 개인정보보호법에 따라 이용자의 개인정보 보호 및 권익을 보호하고 개인정보와 관련한 이용자의 고충을 원활하게 처리할 수 있도록 다음과 같은 처리방침을 두고 있습니다. ('킹진 블로그') 은(는) 회사는 개인정보처리방침을 개정하는 경우 웹사이트 공지사항(또는 개별공지)을 통하여 공지할 것입니다. ○ 본 방침은부터 2020년 2월 1일부터 시행됩니다. 1. 개인정보의 처리 목적 ('https://thinkingjin.tistory.com/'이하 '킹진 블로그')은(는) 개인정보를 다음의 목적을 위해 처리합니다. 처리한 개인정보는 다음의 목적이외의 용도로는 사용되지 않으며 이용 목적이 변경될 시에는 사전동의를 구할 예정..
-
Astar알고리즘을 이용한 몬스터 이동알고리즘/문제해결 2022. 9. 15. 16:46
http://www.gisdeveloper.co.kr/?p=3897 최단 경로 탐색 – A* 알고리즘 – GIS Developer 최단 경로 탐색 알고리즘 중 A*(A Star, 에이 스타) 알고리즘에 대해 실제 예시를 통해 풀어가면서 설명하겠습니다. A* 알고리즘은 시작 노드만을 지정해 다른 모든 노드에 대한 최단 경로를 파악하 www.gisdeveloper.co.kr using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class MapData { public Vector2Int bottomLeft, topRight; public int sizeX, siz..
-
Stack 순서도알고리즘/수업내용 2022. 7. 4. 12:33
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study13 { public class Stack : IEnumerable { private Node top; public Stack() { } public void Push(T data) { if (this.top == null) { top = new Node(data); } else { var node = new Node(data); node.next = top; top = node; } } public T Pop() { if (t..
-
Queue 순서도알고리즘/수업내용 2022. 7. 4. 11:50
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study13 { public class Node { public T data; public Node next; public Node(T data) { this.data = data; this.next = null; } } } using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study13 { public cl..
-
링크드 리스트알고리즘/수업내용 2022. 7. 1. 17:18
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study12 { internal class Program { static void Main(string[] args) { var linkedlist = new LinkedList(); var node = new Node("홍길동"); linkedlist.Add(node); Node node1 = new Node("임꺽정"); linkedlist.Add(node1); Node node2 = new Node("장길산"); linkedlist.Add(node2); Node node3 =..
-
퀘스트 생성 및 진행C#/수업내용 2022. 6. 22. 18:03
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Review10 { public class Game { public Game() { this.LoadDatas(); Character user = new Character(); user.AcceptQuest(1001); user.AcceptQuest(1002); user.AcceptQuest(1003); user.PrintAcceptedQuest(); user.onUpdateQuestEventHandler += (sender, args) => { Quest.instance.Updat..
-
텍스트 Rpg만들기C#/수업과제 2022. 6. 21. 18:00
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using System.IO; namespace Study09 { public class Game { private Character user; public Game() { this.LoadDatas(); if (this.IsNewbie()) { this.CreateCharacter(); } else { Character character = new Character(this.LoadCharacterInfo()); user = character; } user...
-
몬스터 잡고 아이템 드랍 저장, 싱글톤 데이터매니저C#/수업내용 2022. 6. 20. 14:45
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Newtonsoft.Json; namespace Study08 { public class Game { //필드 public List monsters; private Inventory inven; public Game() { this.monsters = new List(); this.LoadDatas(); this.inven = new Inventory(); } private void LoadDatas() { DataManager.instance.LoadMons..