Comment tweaks, updated network version
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "config_utility.hpp"
|
||||
|
||||
void BaseMonster::CorrectSprite() {
|
||||
//TODO: (1) CorrectSprite
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
std::string BaseMonster::SetHandle(std::string s) {
|
||||
|
||||
@@ -156,7 +156,7 @@ protected:
|
||||
LocalCharacter* localCharacter = nullptr;
|
||||
|
||||
//heartbeat
|
||||
//TODO: (9) Heartbeat needs it's own utility
|
||||
//TODO: (2) Heartbeat needs it's own utility
|
||||
typedef std::chrono::steady_clock Clock;
|
||||
Clock::time_point lastBeat = Clock::now();
|
||||
int attemptedBeats = 0;
|
||||
|
||||
@@ -128,11 +128,11 @@ void World::hQueryCharacterExists(CharacterPacket* const argPacket) {
|
||||
}
|
||||
|
||||
void World::hQueryCharacterStats(CharacterPacket* const argPacket) {
|
||||
//TODO: empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hQueryCharacterLocation(CharacterPacket* const argPacket) {
|
||||
//TODO: empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hCharacterMovement(CharacterPacket* const argPacket) {
|
||||
@@ -152,11 +152,11 @@ void World::hCharacterMovement(CharacterPacket* const argPacket) {
|
||||
}
|
||||
|
||||
void World::hCharacterAttack(CharacterPacket* const argPacket) {
|
||||
//TODO: (1) attack animation
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hCharacterDamage(CharacterPacket* const argPacket) {
|
||||
//TODO: (1) attack animation
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
|
||||
@@ -26,14 +26,14 @@
|
||||
//-------------------------
|
||||
|
||||
void World::hTextBroadcast(TextPacket* const argPacket) {
|
||||
//TODO: (1) empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hTextSpeech(TextPacket* const argPacket) {
|
||||
//TODO: (1) empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hTextWhisper(TextPacket* const argPacket) {
|
||||
//TODO: (1) empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ void World::SendDisconnectRequest() {
|
||||
}
|
||||
|
||||
void World::SendAdminDisconnectForced() {
|
||||
//TODO: empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ World::World(int* const argClientIndex, int* const argAccountIndex):
|
||||
shutDownButton.SetText("Shut Down");
|
||||
|
||||
//load the tilesheet
|
||||
//TODO: (9) Tile size and tile sheet should be loaded elsewhere
|
||||
//TODO: (1) Tile size and tile sheet should be loaded elsewhere
|
||||
tileSheet.Load(config["dir.tilesets"] + "overworld.bmp", 32, 32);
|
||||
|
||||
//Send the character data
|
||||
@@ -221,7 +221,7 @@ void World::KeyDown(SDL_KeyboardEvent const& key) {
|
||||
//hotkeys
|
||||
switch(key.keysym.sym) {
|
||||
case SDLK_ESCAPE:
|
||||
//TODO: (9) the escape key should actually control menus and stuff
|
||||
//TODO: (1) the escape key should actually control menus and stuff
|
||||
SendLogoutRequest();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -99,11 +99,11 @@ void World::hQueryMonsterExists(MonsterPacket* const argPacket) {
|
||||
}
|
||||
|
||||
void World::hQueryMonsterStats(MonsterPacket* const argPacket) {
|
||||
//TODO: empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hQueryMonsterLocation(MonsterPacket* const argPacket) {
|
||||
//TODO: empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hMonsterMovement(MonsterPacket* const argPacket) {
|
||||
@@ -118,9 +118,9 @@ void World::hMonsterMovement(MonsterPacket* const argPacket) {
|
||||
}
|
||||
|
||||
void World::hMonsterAttack(MonsterPacket* const argPacket) {
|
||||
//TODO: (1) HandleMonsterAttack
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void World::hMonsterDamage(MonsterPacket* const argPacket) {
|
||||
//TODO: (1) empty
|
||||
//TODO: (9) empty
|
||||
}
|
||||
@@ -100,14 +100,14 @@ void LobbyMenu::FrameEnd() {
|
||||
}
|
||||
|
||||
void LobbyMenu::Render(SDL_Surface* const screen) {
|
||||
//TODO: (9) I need a proper UI system for the entire client and the editor
|
||||
//TODO: (2) I need a proper UI system for the entire client and the editor
|
||||
|
||||
//UI
|
||||
search.DrawTo(screen);
|
||||
join.DrawTo(screen);
|
||||
back.DrawTo(screen);
|
||||
|
||||
//TODO: (9) draw headers for the server list
|
||||
//TODO: (1) draw headers for the server list
|
||||
for (int i = 0; i < serverInfo.size(); i++) {
|
||||
//draw the selected server's highlight
|
||||
if (selection == &serverInfo[i]) {
|
||||
@@ -252,11 +252,11 @@ void LobbyMenu::HandleLoginResponse(ClientPacket* const argPacket) {
|
||||
}
|
||||
|
||||
void LobbyMenu::HandleJoinRejection(TextPacket* const argPacket) {
|
||||
//TODO: (9) Better output for join rejection
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
void LobbyMenu::HandleLoginRejection(TextPacket* const argPacket) {
|
||||
//TODO: (9) Better output for login rejection
|
||||
//TODO: (9) empty
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
|
||||
@@ -108,7 +108,7 @@ void MainMenu::MouseButtonDown(SDL_MouseButtonEvent const& button) {
|
||||
}
|
||||
|
||||
void MainMenu::MouseButtonUp(SDL_MouseButtonEvent const& button) {
|
||||
//TODO: (9) Buttons should only register as "selected" when the left button is used
|
||||
//TODO: (2) Buttons should only register as "selected" when the left button is used
|
||||
if (startButton.MouseButtonUp(button) == Button::State::HOVER) {
|
||||
SetNextScene(SceneList::LOBBYMENU);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user