Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Сулимов Игорь Андреевич
Pac-Man
Commits
29a1d505
Commit
29a1d505
authored
1 week ago
by
Сулимов Игорь Андреевич
Browse files
Options
Download
Patches
Plain Diff
Start of forth item of lab work
parent
4ba549ab
main
No related merge requests found
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
assets/Fonts/Calibri-Light.ttf
+0
-0
assets/Fonts/Calibri-Light.ttf
include/MazeContent/Entities/DynamicEntities/Enemy.h
+16
-0
include/MazeContent/Entities/DynamicEntities/Enemy.h
include/MazeContent/Entities/DynamicEntities/IDynamicEntity.h
+10
-0
...ude/MazeContent/Entities/DynamicEntities/IDynamicEntity.h
include/MazeContent/Entities/IDynamicEntity.hpp
+0
-1
include/MazeContent/Entities/IDynamicEntity.hpp
include/MazeContent/Entities/IStaticEntity.h
+0
-1
include/MazeContent/Entities/IStaticEntity.h
include/MazeContent/Entities/StaticEntities/Food.h
+14
-0
include/MazeContent/Entities/StaticEntities/Food.h
include/MazeContent/Entities/StaticEntities/IStaticEntity.h
+9
-0
include/MazeContent/Entities/StaticEntities/IStaticEntity.h
source/Maze_Content/Entities/Pacman.cpp
+5
-0
source/Maze_Content/Entities/Pacman.cpp
with
54 additions
and
2 deletions
+54
-2
assets/Fonts/Calibri-Light.ttf
0 → 100644
+
0
−
0
View file @
29a1d505
File added
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/DynamicEntities/Enemy.h
0 → 100644
+
16
−
0
View file @
29a1d505
#pragma once
#include
"IDynamicEntity.h"
class
Enemy
:
public
IDynamicEntity
{
public:
void
prepare_for_drawing
()
override
;
///@todo
void
draw_into
(
sf
::
RenderWindow
&
window
)
const
override
;
///@todo
std
::
unique_ptr
<
IDynamicEntity
>
clone
()
override
;
///@todo
void
action
()
override
;
///@todo
public:
Enemy
();
///@todo
private:
sf
::
RectangleShape
m_rectangle
;
sf
::
Clock
m_stopwatch
;
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/DynamicEntities/IDynamicEntity.h
0 → 100644
+
10
−
0
View file @
29a1d505
#pragma once
#include
"MazeContent/Entities/IEntity.h"
class
IDynamicEntity
:
public
IEntity
{
public:
virtual
std
::
unique_ptr
<
IDynamicEntity
>
clone
()
=
0
;
virtual
void
action
()
=
0
;
virtual
~
IDynamicEntity
()
=
default
;
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/IDynamicEntity.hpp
deleted
100644 → 0
+
0
−
1
View file @
4ba549ab
#pragma once
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/IStaticEntity.h
deleted
100644 → 0
+
0
−
1
View file @
4ba549ab
#pragma once
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/StaticEntities/Food.h
0 → 100644
+
14
−
0
View file @
29a1d505
#pragma once
#include
"IStaticEntity.h"
class
Food
:
public
IStaticEntity
{
public:
void
prepare_for_drawing
()
override
;
///@todo
void
draw_into
(
sf
::
RenderWindow
&
window
)
const
override
;
///@todo
std
::
unique_ptr
<
IStaticEntity
>
clone
()
override
;
///@todo
public:
Food
();
///@todo
private:
sf
::
CircleShape
m_circle
;
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/MazeContent/Entities/StaticEntities/IStaticEntity.h
0 → 100644
+
9
−
0
View file @
29a1d505
#pragma once
#include
"MazeContent/Entities/IEntity.h"
class
IStaticEntity
:
public
IEntity
{
public:
virtual
std
::
unique_ptr
<
IStaticEntity
>
clone
()
=
0
;
virtual
~
IStaticEntity
()
=
default
;
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
source/Maze_Content/Entities/Pacman.cpp
0 → 100644
+
5
−
0
View file @
29a1d505
#include
"MazeContent/Entities/Pacman.h"
void
Pacman
::
move
(
Room
::
Direction
direction
)
{
m_location
->
get_side
(
direction
)
->
enter
(
this
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets