File: dice_fwd.hpp

package info (click to toggle)
tome 2.4~0.git.2015.12.29-1.1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 13,712 kB
  • ctags: 10,771
  • sloc: cpp: 134,109; ansic: 7,229; sh: 283; makefile: 70
file content (12 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include "h-basic.h"

typedef struct dice_type dice_type;
struct dice_type;

void dice_init(dice_type *dice, long base, long num, long sides);
bool_ dice_parse(dice_type *dice, cptr s);
void dice_parse_checked(dice_type *dice, cptr s);
long dice_roll(dice_type *dice);
void dice_print(dice_type *dice, char *buf);