コミット忘れ

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