MCPcopy Create free account

hub / github.com/LanKuDot/MLGame / functions

Functions255 in github.com/LanKuDot/MLGame

Methodget_keyboard_command
Get the command according to the pressed keys
games/pingpong/game/pingpong.py:104
Methodget_player_scene_info
Get the scene information to be sent to the player
games/arkanoid/game/arkanoid.py:57
Methodget_player_scene_info
Get the scene information to be sent to the player
games/pingpong/game/pingpong.py:97
Methodget_pressed_commands
Check the pressed keys and return the corresponding commands @return A list of commands of which corresponding keys are pressed
mlgame/gamedev/generic.py:33
Methodget_send_end_names
Get the name of all registered communication objects used for sending @return A dictionary view objects containing the key of `_send
mlgame/communication.py:65
Methodhead_pos
(self)
games/snake/game/gameobject.py:74
Functionmain
mlgame/crosslang/compile/cpp/include/base_main.cpp:5
Methodmove
(self, move_action: PlatformAction)
games/arkanoid/game/gameobject.py:85
Methodmove
(self, move_action: PlatformAction)
games/pingpong/game/gameobject.py:56
Methodmove
(self)
games/pingpong/game/gameobject.py:92
Functionmoving_collide_or_contact
Check if the moving sprite collides or contacts another sprite. @param moving_sprite The sprite that moves in the scene. It must
mlgame/gamedev/physics.py:23
Methodpoll
(self)
mlgame/communication.py:161
Methodpos
(self)
games/snake/game/gameobject.py:23
Methodpos
(self)
games/snake/game/gameobject.py:45
Methodpos
(self)
games/arkanoid/game/gameobject.py:27
Methodpos
(self)
games/arkanoid/game/gameobject.py:79
Methodpos
(self)
games/arkanoid/game/gameobject.py:120
Methodpos
(self)
games/pingpong/game/gameobject.py:50
Methodpos
(self)
games/pingpong/game/gameobject.py:85
Methodpos
(self)
games/pingpong/game/gameobject.py:125
Functionpositive_int
(string)
games/pingpong/config.py:5
Methodrecord
(self, scene_info, commands)
mlgame/recorder.py:104
Functionrect_break_or_contact_box
Determine if the `rect` breaks the `box` or it contacts the border of `box` @param rect The Rect of the target rectangle @param box The
mlgame/gamedev/physics.py:122
Methodrecv
(self)
mlgame/communication.py:164
Methodrecv_all
Receive objects from all communication object registered for receiving If `to_wait` is True, it will wait for the object one by one.
mlgame/communication.py:95
Methodreset
Reset the game This function is invoked when the executor receives the reset signal
games/snake/game/snake.py:60
Methodreset
(self)
games/snake/game/gamecore.py:58
Methodreset
Reset the status if needed
games/snake/ml/ml_play_template.py:31
Methodreset
(self)
games/arkanoid/game/gameobject.py:82
Methodreset
(self)
games/arkanoid/game/gameobject.py:123
Methodreset
Reset the game
games/arkanoid/game/arkanoid.py:51
Methodreset
(self)
games/arkanoid/game/gamecore.py:66
Methodreset
Reset the status
games/arkanoid/ml/ml_play_template.py:29
Methodreset
(self)
games/pingpong/game/gameobject.py:53
Methodreset
(self)
games/pingpong/game/gameobject.py:88
Methodreset
Reset the ball status
games/pingpong/game/gameobject.py:132
Methodreset
Reset the game
games/pingpong/game/pingpong.py:91
Methodreset
(self)
games/pingpong/game/gamecore.py:53
Methodreset
(self)
games/pingpong/ml/ml_play_manual.py:37
Methodreset
Reset the status
games/pingpong/ml/ml_play_template.py:29
Methodsend
(self, obj)
mlgame/communication.py:167
Methodsend_to_all_ml
Send the object to all ml process
mlgame/communication.py:196
Methodset_function
Set the target function to the function delegate @param func A function or a callable object
mlgame/utils/delegate.py:17
Methodspeed
(self)
games/pingpong/game/gameobject.py:129
Functiontrim_callstack
Shorten the call stack to the starting point of the user script
mlgame/exceptions.py:28
Methodupdate
Update the game
games/snake/game/snake.py:27
Methodupdate
Update the scene @param action The action for controlling the movement of the snake
games/snake/game/gamecore.py:74
Methodupdate
Generate the command according to the received scene information
games/snake/ml/ml_play_template.py:12
Methodupdate
Update the game
games/arkanoid/game/arkanoid.py:22
Methodupdate
(self, platform_action: PlatformAction)
games/arkanoid/game/gamecore.py:80
Methodupdate
Generate the command according to the received `scene_info`.
games/arkanoid/ml/ml_play_template.py:12
Methodupdate
(self, command)
games/pingpong/game/pingpong.py:25
Methodupdate
(self, move_action_1P: PlatformAction, move_action_2P: PlatformAction)
games/pingpong/game/gamecore.py:66
Methodupdate
(self, scene_info)
games/pingpong/ml/ml_play_manual.py:18
Methodupdate
Generate the command according to the received scene information
games/pingpong/ml/ml_play_template.py:16
← previous201–255 of 255, ranked by callers