|
cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
骰子消息 更多...
#include <DiceMessage.hpp>
Public 成员函数 | |
| DiceMessage ()=default | |
| DiceMessage (int value) | |
| bool | operator== (const DiceMessage &rhs) |
| bool | operator!= (const DiceMessage &rhs) |
| int | GetValue () const |
| 获取骰子点数 更多... | |
| DiceMessage & | SetValue (int value) |
| 设置骰子点数,不在1~6之间的值将不会被设置 更多... | |
Public 成员函数 继承自 Mirai::IMessageImpl< DiceMessage > | |
| std::unique_ptr< IMessage > | clone () const override |
Public 成员函数 继承自 Mirai::IMessage | |
| virtual | ~IMessage ()=default |
| virtual std::unique_ptr< IMessage > | clone () const =0 |
| MessageTypes | type () const |
| Return the type of the class 更多... | |
| bool | allowSend () const |
| 检查消息是否可以用于发送 更多... | |
| bool | valid () const |
| 检查消息是否有效 更多... | |
Protected 成员函数 | |
| bool | isValid_ () const final |
Protected 成员函数 继承自 Mirai::IMessageImpl< DiceMessage > | |
| IMessageImpl ()=default | |
| MessageTypes | GetType_ () const override |
| bool | isSendSupported_ () const override |
Protected 成员函数 继承自 Mirai::IMessage | |
| IMessage ()=default | |
| virtual MessageTypes | GetType_ () const =0 |
| virtual bool | isSendSupported_ () const =0 |
| virtual bool | isValid_ () const =0 |
Protected 属性 | |
| int | value_ = -1 |
静态 Protected 属性 | |
| static constexpr MessageTypes | TYPE_ = MessageTypes::DICE |
| static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 Mirai::IMessageImpl< DiceMessage > | |
| static constexpr MessageTypes | GetType () |
| static constexpr bool | isSendSupported () |
|
default |
|
inline |
在文件 DiceMessage.hpp 第 47 行定义.
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 DiceMessage.hpp 第 40 行定义.
|
inline |
在文件 DiceMessage.hpp 第 54 行定义.
|
inline |
在文件 DiceMessage.hpp 第 56 行定义.
|
inline |
获取骰子点数
在文件 DiceMessage.hpp 第 59 行定义.
|
inline |
设置骰子点数,不在1~6之间的值将不会被设置
在文件 DiceMessage.hpp 第 62 行定义.
|
protected |
在文件 DiceMessage.hpp 第 38 行定义.
|
staticconstexprprotected |
在文件 DiceMessage.hpp 第 42 行定义.
|
staticconstexprprotected |
在文件 DiceMessage.hpp 第 43 行定义.