|
|
|
 |
|
Item[] mOriginalItem Ar r;
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매");
Console.WriteLine("3.나가기");
Console.WriteLine("상점을 나갑니다.");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
상점에서 보여주는 부분 추가(연결)
상점 판매 할 아이템 추가
Item[] mOriginalItem Ar r;
mOriginalItem A.. |
|
 |
i, console, t, r, writeline, ar, tostring, moriginalitem, string, form, at, mmax, mp, 값, 경험치, if, name, hp, nventroy, mi |
|
|
|
|
 |
|
Item[] mOriginalItem Ar r;
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매");
Console.WriteLine("3.나가기");
Console.WriteLine("상점을 나갑니다.");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
상점에서 보여주는 부분 추가(연결)
상점 판매 할 아이템 추가
Item[] mOriginalItem Ar r;
mOriginalItem A.. |
|
 |
i, console, t, r, writeline, ar, tostring, moriginalitem, string, form, at, mmax, mp, 값, 경험치, if, name, hp, nventroy, mi |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("Gold: "+mGold.ToString()) ;//골드 출력
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용");
Console.WriteLine("3.도망");
아이템 사용 시 hp가 채워지는 부분 내용 추가
PlayerInventory 내용 추가
privateintm.. |
|
 |
console, tostring, writeline, 경험치, mmax, 값, at, string, form, hp, mp, 골드, player, 최대, i, exp, 추가, 변경, monster, 마나 |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("Gold: "+mGold.ToString()) ;//골드 출력
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용");
Console.WriteLine("3.도망");
아이템 사용 시 hp가 채워지는 부분 내용 추가
PlayerInventory 내용 추가
privateintm.. |
|
 |
console, tostring, writeline, 경험치, mmax, 값, at, string, form, hp, mp, 골드, player, 최대, i, exp, 추가, 변경, monster, 마나 |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
mMP=mMax MP;//마나값 최대값으로 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("잘못된 아이템인 덱스입니다."+itemI ndex.ToString());
Console.WriteLine(string. Form at("MP: {0}/{1}",mMP.ToString(), mMax MP.ToString())) ;//HP: 마나/최대 마나
Console.WriteLine("Level: "+mLevel. ToS.. |
|
 |
tostring, console, writeline, i, mmax, 경험치, 아이템, mp, at, form, string, minventroy, hp, 최대, 값, exp, nventroy, mi, 마나, 변경 |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
mMP=mMax MP;//마나값 최대값으로 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("잘못된 아이템인 덱스입니다."+itemI ndex.ToString());
Console.WriteLine(string. Form at("MP: {0}/{1}",mMP.ToString(), mMax MP.ToString())) ;//HP: 마나/최대 마나
Console.WriteLine("Level: "+mLevel. ToS.. |
|
 |
tostring, console, writeline, i, mmax, 경험치, 아이템, mp, at, form, string, minventroy, hp, 최대, 값, exp, nventroy, mi, 마나, 변경 |
|
|
|
|
 |
|
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("3.나가기");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
C#텍스트RPG 만들기
배열값 추가
상점 부분 연결 추가
상점 연결만 테스트
상점 열거형 내용 추가
mOriginalItem Ar r[0.. |
|
 |
console, writeline, i, tostring, r, ar, hp, string, mp, mmax, form, at, t, 값, if, moriginalitem, 경험치, 플레이어, command, 변경 |
|
|
|
|
 |
|
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("3.나가기");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
C#텍스트RPG 만들기
배열값 추가
상점 부분 연결 추가
상점 연결만 테스트
상점 열거형 내용 추가
mOriginalItem Ar r[0.. |
|
 |
console, writeline, i, tostring, r, ar, hp, string, mp, mmax, form, at, t, 값, if, moriginalitem, 경험치, 플레이어, command, 변경 |
|
|
|
|
|
 |
1 |
 |
|
|
|