Formatting changes.
This commit is contained in:
parent
0b65266c9a
commit
88d40b8f29
|
@ -90,7 +90,7 @@ int turnTip()
|
|||
return 0;
|
||||
}
|
||||
|
||||
//Show a help screen for the user
|
||||
// Show a help screen for the user
|
||||
int help()
|
||||
{
|
||||
char buffer[1] = "";
|
||||
|
@ -140,8 +140,8 @@ int main()
|
|||
char text1[256] = "";
|
||||
char text2[256] = "";
|
||||
struct mapmonster mon[5];
|
||||
|
||||
//Text buffers
|
||||
|
||||
// Text buffers
|
||||
char buffer1[256] = "";
|
||||
char buffer2[256] = "";
|
||||
char buffer3[256] = "";
|
||||
|
@ -338,17 +338,17 @@ int main()
|
|||
if (k == KEY_F(5))
|
||||
{
|
||||
echo();
|
||||
mvprintw(4,0,"Save name: ");
|
||||
mvprintw(4, 0, "Save name: ");
|
||||
getnstr(buffer1, 8);
|
||||
|
||||
|
||||
saveMap(buffer1);
|
||||
}
|
||||
if (k == KEY_F(6))
|
||||
{
|
||||
echo();
|
||||
mvprintw(4,0,"Load name: ");
|
||||
mvprintw(4, 0, "Load name: ");
|
||||
getnstr(buffer1, 8);
|
||||
|
||||
|
||||
loadMap(buffer1);
|
||||
}
|
||||
// if(k == KEY_F(7))
|
||||
|
@ -371,7 +371,7 @@ int main()
|
|||
t = buffer1[0];
|
||||
mvprintw(6, 0, "What would you like the sign to say? ");
|
||||
getnstr(dialog, 256);
|
||||
|
||||
|
||||
c = colorPick();
|
||||
|
||||
addInfo(x, y, aMap, xmax, ymax, t, c, dialog);
|
||||
|
@ -385,7 +385,7 @@ int main()
|
|||
mvprintw(6, 0, "Which item is this? ");
|
||||
getnstr(buffer2, 8);
|
||||
ID = atoi(buffer2);
|
||||
|
||||
|
||||
c = colorPick();
|
||||
|
||||
addItem(x, y, aMap, xmax, ymax, t, c, ID);
|
||||
|
@ -419,24 +419,24 @@ int main()
|
|||
mvprintw(5, 0, "Which character would you like to print? ");
|
||||
getnstr(buffer1, 1);
|
||||
t = buffer1[0];
|
||||
|
||||
|
||||
mvprintw(6, 0, "Is this character aggressive? (1 = YES/0 = NO) ");
|
||||
getnstr(buffer2, 1);
|
||||
type = atoi(buffer2);
|
||||
|
||||
|
||||
mvprintw(7, 0, "Does this character wander? (1 = YES/0 = NO) ");
|
||||
getnstr(buffer3, 1);
|
||||
move = atoi(buffer3);
|
||||
|
||||
|
||||
mvprintw(8, 0, "What is their name? ");
|
||||
getnstr(name, 256);
|
||||
|
||||
mvprintw(9, 0, "What do they say when they want to fight? ");
|
||||
getnstr(text1, 256);
|
||||
|
||||
|
||||
mvprintw(10, 0, "What do they say when they don't want to fight? ");
|
||||
getnstr(text2, 256);
|
||||
|
||||
|
||||
mvprintw(11, 0, "What type is their 1st monster? ");
|
||||
getnstr(buffer4, 8);
|
||||
mon[0].type = atoi(buffer4);
|
||||
|
@ -452,7 +452,7 @@ int main()
|
|||
mvprintw(15, 0, "What type is their 5th monster? ");
|
||||
getnstr(buffer8, 8);
|
||||
mon[4].type = atoi(buffer8);
|
||||
|
||||
|
||||
mvprintw(16, 0, "What level is their 1st monster? ");
|
||||
getnstr(buffer9, 8);
|
||||
mon[0].level = atoi(buffer9);
|
||||
|
@ -468,7 +468,7 @@ int main()
|
|||
mvprintw(20, 0, "What level is their 5th monster? ");
|
||||
getnstr(bufferD, 8);
|
||||
mon[4].level = atoi(bufferD);
|
||||
|
||||
|
||||
c = colorPick();
|
||||
|
||||
addChar(x, y, aMap, xmax, ymax, t, c, type, move, name, text1, text2, mon);
|
||||
|
|
Loading…
Reference in New Issue