'●/섹션 5. TextRPG 2' 카테고리의 글 목록 — 웹툰PD 지망생 : 정민재

●/섹션 5. TextRPG 2

    02.TextRPG2 몬스터생성

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Csharp { public enum PlayerType { None = 0, Knight = 1, Archer = 2, Mage = 3 } class Player : Creature//Creature를 부모클래스로 추가 { protected PlayerType type = PlayerType.None; protected Player(PlayerType _type) : base(CreatureType.Player)//부모클래스 Creature의 생성자의 매개변수에 Player삽입 {..

    1. TextRPG2 플레이어 생성

    일단 스크립트를 만든다 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Csharp { public enum PlayerType { None = 0, Knight = 1, Archer = 2, Mage = 3 } class Player { protected PlayerType type; protected int hp; protected int attack; public void SetInfo(int _hp, int _attack) { this.hp = _hp; this.attack = _attack; } public int Get..