Skip to content

wzjwzjwzjwzjwzj#503

Open
wzjwzjwzjwzjwzj wants to merge 15 commits intoYao-class-cpp-studio:mainfrom
wzjwzjwzjwzjwzj:main
Open

wzjwzjwzjwzjwzj#503
wzjwzjwzjwzjwzj wants to merge 15 commits intoYao-class-cpp-studio:mainfrom
wzjwzjwzjwzjwzj:main

Conversation

@wzjwzjwzjwzjwzj
Copy link

一定概率暴击+吸血

Comment on lines +5 to +7
class Tank : public Unit {
class Strangetank : public Unit {
public:
Tank(GameCore *game_core, uint32_t id, uint32_t player_id);
Strangetank(GameCore *game_core, uint32_t id, uint32_t player_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你是不是搞反了?这个文件不能动

Comment on lines +5 to +22
class Tank : public Unit {
public:
Tank(GameCore *game_core, uint32_t id, uint32_t player_id);
void Render() override;
void Update() override;
[[nodiscard]] bool IsHit(glm::vec2 position) const override;

protected:
void TankMove(float move_speed, float rotate_angular_speed);
void TurretRotate();
void Fire();
[[nodiscard]] const char *UnitName() const override;
[[nodiscard]] const char *Author() const override;

float turret_rotation_{0.0f};
uint32_t fire_count_down_{0};
uint32_t mine_count_down_{0};
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你应该改名字的是这部分吧

Comment on lines +1 to +2
#include "strange_tank.h"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

路径写全

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants