コミット忘れ

This commit is contained in:
2023-08-27 02:00:35 +09:00
parent 57a456bec3
commit fc640f686c
4 changed files with 85 additions and 2 deletions
+17 -2
View File
@@ -91,6 +91,14 @@ Draw \
Return
/**
* 文字列を検索する.
*
* @param str haystack
* @param str offset
* @param str needle
* @return int
*/
#defcfunc local \
MyInStr \
str p_haystack,\
@@ -120,12 +128,19 @@ MyInStr \
Return myInStr_cnt * 3
/**
* 文字列を抜き出す.
*
* @param str string
* @param int offset
* @param int length
* @return str
*/
#defcfunc local \
MyStrMid \
str p_string,\
int p_offset,\
int p_length,\
int p_test
int p_length
myStrMid_string = p_string
SDim myStrMid_return, p_length
+9
View File
@@ -4,11 +4,20 @@
#ifndef __CHAT__
#define __CHAT__
/**
* チャット機能を提供する.
*/
#module \
Chat
#define URL (CONFIG_SERVER_URL + "/chat.php")
/**
* チャットの送信
*
* @param str message チャット内容
* @return void
*/
#deffunc local \
Send \
str p_message
+20
View File
@@ -1,6 +1,11 @@
#ifndef __DIALOGUE__
#define __DIALOGUE__
/**
* ダイアログ・ウィンドウ
*
* @property bool showing
*/
#module \
Dialogue
@@ -12,18 +17,33 @@ Dialogue
#const DIALOGUE_LEFT ((DISPLAY_WIDTH - DIALOGUE_WIDTH) / 2)
#const DIALOGUE_RIGHT ((DISPLAY_WIDTH + DIALOGUE_WIDTH) / 2)
/**
* ダイアログを表示する.
*
* @return void
*/
#deffunc local \
Show
showing = True
Return
/**
* ダイアログを隠す.
*
* @return void
*/
#deffunc local \
Hide
showing = False
Return
/**
* ダイアログを描画する.
*
* @return void
*/
#deffunc local \
Draw
If showing = False {
+39
View File
@@ -1,6 +1,13 @@
#ifndef __GOATOH__
#define __GOATOH__
/**
* ゴートうひとり(ムムムム!
*
* @property double posX
* @property double posY
* @property double[] legArgs
*/
#module \
Goatoh
@@ -12,6 +19,13 @@ Goatoh
#enum LEG_DIRECTION_FRONT = 1
#enum LEG_DIRECTION_HIND
/**
* コンストラクタ:ゴートうを生成する.
*
* @param double initPosX
* @param double initPosY
* @param int initDirection
*/
#defcfunc local \
New \
double p_initPosX,\
@@ -66,6 +80,11 @@ New \
Return insNum - 1
/**
* ゴートうを歩かせる.
*
* @return void
*/
#deffunc local \
Walk \
int p_insId
@@ -96,16 +115,31 @@ Walk \
Return
/**
* ゴートうを走らせる.
*
* @return void
*/
#deffunc local \
DoRun \
int p_insId
Return
/**
* クサタベテル!!!
*
* @return void
*/
#deffunc local \
Eat \
int p_insId
Return
/**
* ゴートうを描画する.
*
* @return void
*/
#deffunc local \
Draw
Repeat insNum
@@ -153,6 +187,11 @@ Draw
Return
/**
* 描画ごとの内部処理を行う.
*
* @return void
*/
#deffunc local \
Interval
Repeat insNum